Don't assume that self._task.action is copy, explicitly set. Addresses #37238 (#37777)

pull/37933/head
Matt Martz 7 years ago committed by GitHub
parent 8eaa9cc938
commit 0dcd8b598c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -435,7 +435,7 @@ class ActionModule(ActionBase):
# if we have first_available_file in our vars
# look up the files and use the first one we find as src
elif remote_src:
result.update(self._execute_module(task_vars=task_vars))
result.update(self._execute_module(module_name='copy', task_vars=task_vars))
return result
else:
# find_needle returns a path that may not have a trailing slash on

Loading…
Cancel
Save