[stable-2.14] ansible-test - fix warning to include image name (#79560) (#79973)

(cherry picked from commit 0a12d8a5bc)

Co-authored-by: Martin Krizek <martin.krizek@gmail.com>
pull/79982/head
Matt Clay 2 years ago committed by GitHub
parent 50b6d3515c
commit 6adea5fa5c
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