Skip to content

Commit 2867717

Browse files
committed
Enforce one platform policy for GardenLinux canonical names
Signed-off-by: Tobias Wolf <[email protected]> On-behalf-of: SAP <[email protected]>
1 parent 6400bde commit 2867717

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

src/gardenlinux/features/cname.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import re
88
from configparser import UNNAMED_SECTION, ConfigParser
9-
from os import PathLike, environ
9+
from os import environ, PathLike
1010
from pathlib import Path
1111
from typing import Optional
1212

@@ -51,14 +51,10 @@ def __init__(self, cname, arch=None, commit_hash=None, version=None):
5151
self._commit_id = None
5252
self._feature_elements_cached = None
5353
self._feature_flags_cached = None
54-
self._feature_platforms_cached = None
54+
self._feature_platform_cached = None
5555
self._feature_set_cached = None
5656
self._platform_variant_cached = None
57-
58-
self._flag_multiple_platforms = bool(
59-
environ.get("GL_ALLOW_FRANKENSTEIN", False)
60-
)
61-
57+
self._flag_multiple_platforms = bool(environ.get("GL_ALLOW_FRANKENSTEIN", False))
6258
self._flavor = None
6359
self._version = None
6460

src/gardenlinux/s3/s3_artifacts.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
from ..features import CName
2222
from .bucket import Bucket
23+
from ..features import CName
2324

2425

2526
class S3Artifacts(object):

0 commit comments

Comments
 (0)