Skip to content

Commit

Permalink
src/cmd-push-container-manifest: fix allowing for missing architectures
Browse files Browse the repository at this point in the history
We need to use .get() here because if the key doesn't exist (which is
what we are checking for) then we'll get a KeyError. Fixes a8bfe8f.
  • Loading branch information
dustymabe committed May 4, 2023
1 parent a487f53 commit 0cbd636
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd-push-container-manifest
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def main():
builddir = builds.get_build_dir(build_id=args.build, basearch=arch)
buildmeta = GenericBuildMeta(build=args.build, basearch=arch,
workdir=os.path.abspath(os.getcwd()))
if not buildmeta['images'][args.artifact]:
if not buildmeta['images'].get(args.artifact):
print(f"No artifact {args.artifact} in {args.build}/{arch}")
if allow_missing_arches:
continue
Expand Down

0 comments on commit 0cbd636

Please sign in to comment.