mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #281 from dne/file-link-relative
File module fix for symlink from relative source path
This commit is contained in:
commit
27582ad313
1 changed files with 1 additions and 2 deletions
|
@ -356,8 +356,7 @@ elif state == 'link':
|
|||
if os.path.isabs(src):
|
||||
abs_src = src
|
||||
else:
|
||||
# FIXME: this does not seem correct? -- MPD
|
||||
abs_src = os.path.dirname(dest)
|
||||
abs_src = os.path.join(os.path.dirname(dest), src)
|
||||
if not os.path.exists(abs_src):
|
||||
fail_json(dest=dest, src=src, msg='src file does not exist')
|
||||
|
||||
|
|
Loading…
Reference in a new issue