From b5363c38762629d9f3156f1b189a76864bafb47f Mon Sep 17 00:00:00 2001 From: chatton Date: Wed, 12 Jul 2023 21:42:47 +0100 Subject: [PATCH] set indent to 2 --- 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 582737c..ea50f6b 100644 --- a/plugins/modules/portainer_stack.py +++ b/plugins/modules/portainer_stack.py @@ -196,7 +196,7 @@ def _get_stack_contents(params): return f.read() if params.get("definition"): - return yaml.dump(params["definition"], indent=4) + return yaml.dump(params["definition"], indent=2) raise ValueError("No docker_compose_file_path or definition provided.")