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
2 changed files with 3 additions and 2 deletions
@@ -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)."
+1 -2
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)