Skip to content

Commit

Permalink
hack: Fix variable reference before assignment
Browse files Browse the repository at this point in the history
Traceback (most recent call last):
  File "/root/master/./hack/build-image", line 726, in <module>
    main()
  File "/root/master/./hack/build-image", line 716, in main
    _action(cli, img)
  File "/root/master/./hack/build-image", line 513, in retag
    container_tag(cli, cid, *tags)
  File "/root/master/./hack/build-image", line 268, in container_tag
    args += [tag] + list(tags)
UnboundLocalError: local variable 'args' referenced before assignment

Signed-off-by: Anoop C S <[email protected]>
  • Loading branch information
anoopcs9 committed Nov 21, 2024
1 parent a5244a3 commit 6764958
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/build-image
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def container_tag(cli, target, tag, *tags):
]
if "docker" not in base_args[0]:
# podman can do it in one command, docker (on github ci) can not
args += [tag] + list(tags)
args = base_args + [tag] + list(tags)
run(cli, args, check=True)
return
for new_tag in [tag] + list(tags):
Expand Down

0 comments on commit 6764958

Please sign in to comment.