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

symlink fix

This commit is contained in:
Jonathan Palley 2012-10-18 20:08:57 +08:00
parent 556799a7c4
commit 702469f7bf

View file

@ -340,7 +340,7 @@ def main():
if src: if src:
src = os.path.expanduser(src) src = os.path.expanduser(src)
if src is not None and os.path.isdir(path): if src is not None and os.path.isdir(path) and state != "link":
params['path'] = path = os.path.join(path, os.path.basename(src)) params['path'] = path = os.path.join(path, os.path.basename(src))
mode = params.get('mode', None) mode = params.get('mode', None)