Skip to content

Commit

Permalink
Fix error formatting bug. (#448)
Browse files Browse the repository at this point in the history
(cherry picked from commit f513ba2)
  • Loading branch information
felixfontein authored and patchback[bot] committed Aug 12, 2022
1 parent 403b4f4 commit ba8c260
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/448-docker_stack-error.yml
Original file line number Diff line number Diff line change
@@ -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)."
3 changes: 1 addition & 2 deletions plugins/modules/docker_stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit ba8c260

Please sign in to comment.