mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Merge pull request #6571 from bcoca/file_fixes_copydir
fixed issue with directory permissions on copy
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user