mirror of
https://github.com/ansible-collections/community.docker.git
synced 2025-12-16 03:52:05 +00:00
(cherry picked from commit f513ba2c59)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
bd62f82ca5
commit
154e1902de
2
changelogs/fragments/448-docker_stack-error.yml
Normal file
2
changelogs/fragments/448-docker_stack-error.yml
Normal 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)."
|
||||
@ -248,8 +248,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)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user