1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix logic error when copying files recursively to a directory

This commit is contained in:
James Cammarata 2016-02-23 16:29:57 -05:00
parent 9de24a3735
commit 2db3f290ba

View file

@ -184,7 +184,7 @@ class ActionModule(ActionBase):
dest_file = self._connection._shell.join_path(dest, source_rel) dest_file = self._connection._shell.join_path(dest, source_rel)
dest_status = self._execute_remote_stat(dest_file, all_vars=task_vars, follow=follow) dest_status = self._execute_remote_stat(dest_file, all_vars=task_vars, follow=follow)
if not dest_status['exists'] and not force: if dest_status['exists'] and not force:
# remote_file does not exist so continue to next iteration. # remote_file does not exist so continue to next iteration.
continue continue