Skip to content

Commit

Permalink
fix(panos_export): More instances of save_binary
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesholland-uk committed Sep 18, 2023
1 parent b2fe71b commit fa6a11f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/modules/panos_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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"]
Expand All @@ -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:
Expand All @@ -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)

Expand Down

0 comments on commit fa6a11f

Please sign in to comment.