diff --git a/changelogs/fragments/ansible-test-fix-warning-msg.yml b/changelogs/fragments/ansible-test-fix-warning-msg.yml new file mode 100644 index 00000000000..b6b6d483861 --- /dev/null +++ b/changelogs/fragments/ansible-test-fix-warning-msg.yml @@ -0,0 +1,2 @@ +bugfixes: + - ansible-test - fix warning message about failing to run an image to include the image name diff --git a/test/lib/ansible_test/_internal/containers.py b/test/lib/ansible_test/_internal/containers.py index 95b1718b3ef..de4a380c47d 100644 --- a/test/lib/ansible_test/_internal/containers.py +++ b/test/lib/ansible_test/_internal/containers.py @@ -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: