Skip to content

Commit 9aaf32a

Browse files
committed
Ensure platform is defined in PLATFORMS dict before access
Signed-off-by: Tobias Wolf <wolf@b1-systems.de> On-behalf-of: <tobias.wolf@sap.com>
1 parent efdffb9 commit 9aaf32a

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

‎.github/actions/setup/action.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Installs the given GardenLinux Python library
44
inputs:
55
version:
66
description: GardenLinux Python library version
7-
default: "0.10.21"
7+
default: "0.10.22"
88
python_version:
99
description: Python version to setup
1010
default: "3.13"

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "gardenlinux"
3-
version = "0.10.21"
3+
version = "0.10.22"
44
description = "Contains tools to work with the features directory of gardenlinux, for example deducting dependencies from feature sets or validating cnames"
55
authors = ["Garden Linux Maintainers <contact@gardenlinux.io>"]
66
license = "Apache-2.0"

‎src/gardenlinux/github/release_notes/sections.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ def generate_table_format(
138138
continue
139139

140140
for platform in sorted(grouped_data[variant].keys()):
141+
if not hasattr(PLATFORMS, platform):
142+
LOGGER.warn(f"GitHub release notes platform not defined: {platform}")
143+
continue
144+
141145
for arch in sorted(grouped_data[variant][platform].keys()):
142146
for metadata in grouped_data[variant][platform][arch]:
143147
data = PLATFORMS[platform].published_images_by_regions(metadata)

0 commit comments

Comments
 (0)