mirror of
https://github.com/ansible/ansible.git
synced 2026-02-03 20:40:24 -05:00
Remove diff-attrs from method call
This commit is contained in:
parent
7b13216cc1
commit
dd55c64eb9
1 changed files with 2 additions and 4 deletions
|
|
@ -1175,10 +1175,8 @@ def main():
|
|||
# do we need to change perms?
|
||||
for filename in handler.files_created_by_archive:
|
||||
file_args['path'] = os.path.join(b_dest, to_bytes(filename, errors='surrogate_or_strict'))
|
||||
diff_attrs = {}
|
||||
res_args['changed'] = module.set_fs_attributes_if_different(file_args, res_args.get('changed', False), diff_attrs, expand=False)
|
||||
if diff_attrs:
|
||||
res_args.setdefault('diff', {})[filename] = diff_attrs
|
||||
|
||||
res_args['changed'] = module.set_fs_attributes_if_different(file_args, res_args.get('changed', False), expand=False)
|
||||
|
||||
if module.params['list_files']:
|
||||
res_args['files'] = handler.files_in_archive
|
||||
|
|
|
|||
Loading…
Reference in a new issue