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

fixed issue with directory permissions on copy #6552

This commit is contained in:
Brian Coca 2014-03-18 22:29:22 -04:00
parent 8899c74aaf
commit f6a75ebaf1

View file

@ -203,7 +203,7 @@ def main():
src = os.path.expanduser(src) src = os.path.expanduser(src)
# original_basename is used by other modules that depend on file. # original_basename is used by other modules that depend on file.
if os.path.isdir(path) and state not in ["link", "absent", "directory"]: if os.path.isdir(path) and state not in ["link", "absent"]:
if params['original_basename']: if params['original_basename']:
basename = params['original_basename'] basename = params['original_basename']
else: else: