Skip to content

Commit 7c5bb48

Browse files
anoopcs9mergify[bot]
authored andcommitted
hack: Fix variable reference before assignment
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]>
1 parent 55af1e1 commit 7c5bb48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hack/build-image

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def container_tag(cli, target, tag, *tags):
265265
]
266266
if "docker" not in base_args[0]:
267267
# podman can do it in one command, docker (on github ci) can not
268-
args += [tag] + list(tags)
268+
args = base_args + [tag] + list(tags)
269269
run(cli, args, check=True)
270270
return
271271
for new_tag in [tag] + list(tags):

0 commit comments

Comments
 (0)