From 0b60111d5ed4a4904ea520950a30740db4b1426c Mon Sep 17 00:00:00 2001 From: chatton Date: Sat, 24 Jun 2023 23:44:41 +0100 Subject: [PATCH] wip --- plugins/modules/portainer_stack.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/modules/portainer_stack.py b/plugins/modules/portainer_stack.py index 5c7a7ae..0acb9a4 100644 --- a/plugins/modules/portainer_stack.py +++ b/plugins/modules/portainer_stack.py @@ -125,7 +125,7 @@ def _update_stack(contents, client, module, stack_id): ) -def _handle_state_present(contents, result, client, module): +def _handle_state_present(contents, stacks, result, client, module): already_exists = False target_stack_name = module.params["stack_name"] for stack in stacks: @@ -174,7 +174,7 @@ def handle_state_present(client, module): else: raise ValueError("Should not be able to be here!") - _handle_state_present(contents, result, client, module) + _handle_state_present(contents, result, stacks, client, module) def handle_state_absent(client, module):