Skip to content

Commit

Permalink
Fixing absolute path calculation for file module when linking
Browse files Browse the repository at this point in the history
Fixes #7403
  • Loading branch information
jimi-c committed May 21, 2014
1 parent d72cd70 commit 1248d2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/files/file
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,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)
Expand Down

0 comments on commit 1248d2c

Please sign in to comment.