Fixing absolute path calculation for file module when linking
Fixes #7403
This commit is contained in:
parent
981d56ba55
commit
062e82937f
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ def main():
|
|||
|
||||
absrc = src
|
||||
if not os.path.isabs(absrc):
|
||||
absrc = os.path.normpath('%s/%s' % (os.path.dirname(path), absrc))
|
||||
absrc = os.path.abspath(src)
|
||||
|
||||
if not os.path.exists(absrc) and not force:
|
||||
module.fail_json(path=path, src=src, msg='src file does not exist, use "force=yes" if you really want to create the link: %s' % absrc)
|
||||
|
|
Loading…
Reference in a new issue