Skip to content

Commit

Permalink
[ignore] fix json dump consistency for aci_rest
Browse files Browse the repository at this point in the history
  • Loading branch information
akinross authored and lhercot committed Sep 28, 2023
1 parent cc180dd commit f9b55a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/modules/aci_rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit f9b55a4

Please sign in to comment.