stop trying to set permissions in check mode

fixes #4195
reviewable/pr18780/r1
Brian Coca 8 years ago
parent 4c59da1cf4
commit 7de287237f

@ -340,8 +340,9 @@ def main():
res_args['backup_file'] = backup_file
module.params['dest'] = dest
file_args = module.load_file_common_arguments(module.params)
res_args['changed'] = module.set_fs_attributes_if_different(file_args, res_args['changed'])
if not module.check_mode:
file_args = module.load_file_common_arguments(module.params)
res_args['changed'] = module.set_fs_attributes_if_different(file_args, res_args['changed'])
module.exit_json(**res_args)

Loading…
Cancel
Save