mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-07-30 12:15:45 +00:00
Fix error formatting bug. (#448)
This commit is contained in:
@@ -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)."
|
||||||
@@ -246,8 +246,7 @@ def main():
|
|||||||
elif isinstance(compose_def, string_types):
|
elif isinstance(compose_def, string_types):
|
||||||
compose_files.append(compose_def)
|
compose_files.append(compose_def)
|
||||||
else:
|
else:
|
||||||
module.fail_json(msg="compose element '%s' must be a " +
|
module.fail_json(msg="compose element '%s' must be a string or a dictionary" % compose_def)
|
||||||
"string or a dictionary" % compose_def)
|
|
||||||
|
|
||||||
before_stack_services = docker_stack_inspect(module, name)
|
before_stack_services = docker_stack_inspect(module, name)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user