From fa6a11f92dd45c9331f0db4d1ddbdf34a749ca12 Mon Sep 17 00:00:00 2001 From: Jimmy Holland <6574404+jamesholland-uk@users.noreply.github.com> Date: Mon, 18 Sep 2023 13:25:26 +0100 Subject: [PATCH] fix(panos_export): More instances of save_binary --- plugins/modules/panos_export.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/modules/panos_export.py b/plugins/modules/panos_export.py index ebde65a84..49c18a65c 100644 --- a/plugins/modules/panos_export.py +++ b/plugins/modules/panos_export.py @@ -467,7 +467,7 @@ def main(): if filename is None: module.fail_json(msg="filename is required for export") - save_binary(module, xapi, category, filename) + save_binary(module, xapi, category, filename, create_directory) elif category == "filter-pcap": # When exporting a filter pcap, from_name can be: @@ -487,7 +487,7 @@ def main(): if filename is None: module.fail_json(msg="filename is required for export") - save_binary(module, xapi, category, filename) + save_binary(module, xapi, category, filename, create_directory) elif category == "dlp-pcap": from_name = module.params["dlp_pcap_name"] @@ -512,7 +512,7 @@ def main(): if filename is None: module.fail_json(msg="filename is required for export") - save_binary(module, xapi, category, filename) + save_binary(module, xapi, category, filename, create_directory) elif category == "threat-pcap": if filename is None: @@ -535,7 +535,7 @@ def main(): search_time=search_time, serialno=serial, ) - save_binary(module, xapi, category, filename) + save_binary(module, xapi, category, filename, create_directory) module.exit_json(changed=False)