mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Fix bug in library/file
This commit is contained in:
@@ -318,8 +318,9 @@ elif state == 'link':
|
||||
if os.path.isabs(src):
|
||||
abs_src = src
|
||||
else:
|
||||
abs_src = os.path.join(os.path.dirname(dest))
|
||||
if not os.path.exists(abssrc):
|
||||
# FIXME: this does not seem correct? -- MPD
|
||||
abs_src = os.path.dirname(dest)
|
||||
if not os.path.exists(abs_src):
|
||||
fail_json(dest=dest, src=src, msg='src file does not exist')
|
||||
|
||||
if prev_state == 'absent':
|
||||
|
||||
Reference in New Issue
Block a user