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

Fix for issue 5739. The copy module does not delete directories it will only unlinks symlinks.

This commit is contained in:
Richard C Isaacson 2014-01-31 17:19:44 -06:00
parent 460adb4d36
commit b20dc4f578

View file

@ -124,8 +124,6 @@ class ActionModule(object):
diffs = [] diffs = []
module_result = {"changed": False} module_result = {"changed": False}
for source_full, source_rel in source_files: for source_full, source_rel in source_files:
# We need to get a new tmp path for each file, otherwise the copy module deletes the folder.
tmp = self.runner._make_tmp_path(conn)
local_md5 = utils.md5(source_full) local_md5 = utils.md5(source_full)
if local_md5 is None: if local_md5 is None: