Merge branch 'devel' of https://github.com/dmage/ansible into dmage-devel
This commit is contained in:
commit
bb8bac490a
1 changed files with 2 additions and 2 deletions
|
@ -257,8 +257,8 @@ def main():
|
||||||
else:
|
else:
|
||||||
relpath = os.path.dirname(path)
|
relpath = os.path.dirname(path)
|
||||||
|
|
||||||
absrc = os.path.normpath('%s/%s' % (relpath, os.path.basename(src)))
|
absrc = os.path.join(relpath, src)
|
||||||
if not os.path.exists(src) and not os.path.exists(absrc) and not force:
|
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)
|
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)
|
||||||
|
|
||||||
if state == 'hard':
|
if state == 'hard':
|
||||||
|
|
Loading…
Reference in a new issue