Skip to content

Commit

Permalink
load_file_common_args has path in params
Browse files Browse the repository at this point in the history
  • Loading branch information
guidograzioli committed Oct 2, 2023
1 parent 7a0d82e commit 8682417
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/modules/product_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def main():
)

if os.path.exists(dest) and not force:
file_args = module.load_file_common_arguments(module.params, path=dest)
file_args = module.load_file_common_arguments(module.params)
result['changed'] = module.set_fs_attributes_if_different(file_args, False)

if result['changed']:
Expand Down Expand Up @@ -285,7 +285,7 @@ def main():
except Exception as err:
module.fail_json(msg="Error Downloading %s: %s" % (search_results[0]['title'], to_native(err)))

file_args = module.load_file_common_arguments(module.params, path=dest)
file_args = module.load_file_common_arguments(module.params)
result['changed'] = module.set_fs_attributes_if_different(file_args, result['changed'])

try:
Expand Down

0 comments on commit 8682417

Please sign in to comment.