From 6c9c8e72eac59840080cba819be3320657e84a09 Mon Sep 17 00:00:00 2001 From: chatton Date: Sat, 24 Jun 2023 23:28:58 +0100 Subject: [PATCH] wip --- plugins/modules/portainer_stack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/portainer_stack.py b/plugins/modules/portainer_stack.py index ee1ff43..541ffd5 100644 --- a/plugins/modules/portainer_stack.py +++ b/plugins/modules/portainer_stack.py @@ -172,7 +172,7 @@ def handle_state_present(client, module): with open(module.params["docker_compose_file_path"]) as f: contents = f.read() elif "definition" in module.params: - contents = json.dumps(module.params["definition"]) + contents = module.params["stack_definition"] else: raise ValueError("Should not be able to be here!")