Skip to content

Commit

Permalink
Default oci-platform features field to None
Browse files Browse the repository at this point in the history
  • Loading branch information
zkdev committed Sep 27, 2024
1 parent 74f83ac commit 2ddb24f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion concourse/steps/publish.mako
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def to_manifest_list_entry(image_ref_template: str, oci_client=oci_client):
architecture=arch,
os=os_id,
variant=cfg_blob.get('variant', None),
features=cfg_blob.get('features', []),
features=cfg_blob.get('features', None),
),
)
Expand Down
2 changes: 1 addition & 1 deletion oci/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ class OciPlatform:
architecture: str
os: str # could also be a dict (see spec)
variant: str | None = None
features: list[str] | None = dataclasses.field(default_factory=list)
features: list[str] | None = None

def as_dict(self) -> dict:
# need custom serialisation, because some OCI registries do not like null-values
Expand Down

0 comments on commit 2ddb24f

Please sign in to comment.