ansible-test - fix warning to include image name (#79560)

pull/79566/head
Martin Krizek 2 years ago committed by GitHub
parent bc13099e56
commit 0a12d8a5bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,2 @@
bugfixes:
- ansible-test - fix warning message about failing to run an image to include the image name

@ -263,7 +263,7 @@ def run_container(
stdout = docker_run(args, image, options, cmd)[0]
except SubprocessError as ex:
display.error(ex.message)
display.warning('Failed to run docker image "{image}". Waiting a few seconds before trying again.')
display.warning(f'Failed to run docker image "{image}". Waiting a few seconds before trying again.')
docker_rm(args, name) # podman doesn't remove containers after create if run fails
time.sleep(3)
else:

Loading…
Cancel
Save