mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-31 21:39:10 -07:00
parent
7966beb6c9
commit
237411613d
2 changed files with 38 additions and 30 deletions
|
@ -865,10 +865,10 @@ def main():
|
|||
for filename in handler.files_in_archive:
|
||||
file_args['path'] = os.path.join(dest, filename)
|
||||
try:
|
||||
res_args['changed'] = module.set_fs_attributes_if_different(file_args, res_args['changed'])
|
||||
res_args['changed'] = module.set_fs_attributes_if_different(file_args, res_args['changed'], expand=False)
|
||||
except (IOError, OSError):
|
||||
e = get_exception()
|
||||
module.fail_json(msg="Unexpected error when accessing exploded file: %s" % str(e), **res_args)
|
||||
module.fail_json(msg="Unexpected error when accessing exploded file: %s" % e, **res_args)
|
||||
|
||||
if module.params['list_files']:
|
||||
res_args['files'] = handler.files_in_archive
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue