diff options
author | James Cammarata <jimi@sngx.net> | 2014-09-22 15:40:06 -0500 |
---|---|---|
committer | James Cammarata <jimi@sngx.net> | 2014-09-22 15:40:06 -0500 |
commit | bb8bac490a1b4f1ac4b8e6c718057ad11726be62 (patch) | |
tree | 93bc636aa26c31b29ca3a24d04f895a3724d7606 /files | |
parent | 0d0576a97fe19411250df262c9aaa6c86b99f3ec (diff) | |
parent | 583cfa45e51b53915e35b3fed1471bcf91edc13c (diff) | |
download | ansible-modules-extras-bb8bac490a1b4f1ac4b8e6c718057ad11726be62.tar.gz |
Merge branch 'devel' of https://github.com/dmage/ansible into dmage-devel
Diffstat (limited to 'files')
-rw-r--r-- | files/file | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -257,8 +257,8 @@ def main(): else: relpath = os.path.dirname(path) - absrc = os.path.normpath('%s/%s' % (relpath, os.path.basename(src))) - if not os.path.exists(src) and not os.path.exists(absrc) and not force: + absrc = os.path.join(relpath, 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) if state == 'hard': |