Update lib/ansible/modules/copy.py

pull/82658/head
Sloane Hertel 4 months ago committed by s-hertel
parent 82a3c55226
commit abfe4310c8

@ -395,7 +395,6 @@ def copy_left_only(src, dest, module):
if os.path.islink(b_src_item_path) and os.path.isfile(b_src_item_path) and local_follow is True:
shutil.copyfile(b_src_item_path, b_dest_item_path)
shutil.copymode(b_src_item_path, b_dest_item_path)
if os.path.islink(b_src_item_path) and os.path.isfile(b_src_item_path) and local_follow is False:
linkto = os.readlink(b_src_item_path)

Loading…
Cancel
Save