Fix error formatting bug. (#448)

This commit is contained in:
Felix Fontein 2022-08-12 13:53:59 +02:00 committed by GitHub
parent 5b76f05bef
commit f513ba2c59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -0,0 +1,2 @@
bugfixes:
- "docker_stack - fix broken string formatting when reporting error in case ``compose`` was containing invalid values (https://github.com/ansible-collections/community.docker/pull/448)."

View File

@ -246,8 +246,7 @@ def main():
elif isinstance(compose_def, string_types):
compose_files.append(compose_def)
else:
module.fail_json(msg="compose element '%s' must be a " +
"string or a dictionary" % compose_def)
module.fail_json(msg="compose element '%s' must be a string or a dictionary" % compose_def)
before_stack_services = docker_stack_inspect(module, name)