File module fix for symlink from relative source path
This commit is contained in:
parent
31f6cd6408
commit
546cacd172
1 changed files with 1 additions and 2 deletions
3
file
3
file
|
@ -356,8 +356,7 @@ elif state == 'link':
|
||||||
if os.path.isabs(src):
|
if os.path.isabs(src):
|
||||||
abs_src = src
|
abs_src = src
|
||||||
else:
|
else:
|
||||||
# FIXME: this does not seem correct? -- MPD
|
abs_src = os.path.join(os.path.dirname(dest), src)
|
||||||
abs_src = os.path.dirname(dest)
|
|
||||||
if not os.path.exists(abs_src):
|
if not os.path.exists(abs_src):
|
||||||
fail_json(dest=dest, src=src, msg='src file does not exist')
|
fail_json(dest=dest, src=src, msg='src file does not exist')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue