Commit 9e934acf by Michael DeHaan

Relative symlinks don't really work (module bug) and would be confusing anyway,…

Relative symlinks don't really work (module bug) and would be confusing anyway, better to be explicit.
parent ce015fca
......@@ -321,7 +321,7 @@ def main():
if os.path.isabs(src):
abs_src = src
else:
abs_src = os.path.join(os.path.dirname(dest), src)
module.fail_json(msg="absolute paths are required")
if not os.path.exists(abs_src):
module_fail_json(path=path, src=src, msg='src file does not exist')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment