From 5ec0297c04547c20a64c5f94057949f23b604078 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Wed, 21 May 2014 12:48:27 -0500 Subject: [PATCH] Fixing absolute path calculation for file module when linking Fixes #7403 --- files/file | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/file b/files/file index 4ba61f6d531..32588e56e6e 100644 --- a/files/file +++ b/files/file @@ -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)