From f9b55a46bdcd7f3a0923f2781fea481cba6bfa68 Mon Sep 17 00:00:00 2001 From: akinross Date: Wed, 20 Sep 2023 18:44:37 +0200 Subject: [PATCH] [ignore] fix json dump consistency for aci_rest --- plugins/modules/aci_rest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/aci_rest.py b/plugins/modules/aci_rest.py index d3a01bd56..374c9206f 100644 --- a/plugins/modules/aci_rest.py +++ b/plugins/modules/aci_rest.py @@ -449,7 +449,7 @@ def main(): output_path = aci.params.get("output_path") if output_path is not None: with open(output_path, "a") as output_file: - if aci.module.check_mode: + if rest_type == "json": json.dump([payload], output_file) else: output_file.write(str(payload))