mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Relative symlinks don't really work (module bug) and would be confusing anyway, better to be explicit.
This commit is contained in:
parent
ce015fcaf8
commit
9e934acfca
1 changed files with 1 additions and 1 deletions
|
@ -321,7 +321,7 @@ def main():
|
||||||
if os.path.isabs(src):
|
if os.path.isabs(src):
|
||||||
abs_src = src
|
abs_src = src
|
||||||
else:
|
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):
|
if not os.path.exists(abs_src):
|
||||||
module_fail_json(path=path, src=src, msg='src file does not exist')
|
module_fail_json(path=path, src=src, msg='src file does not exist')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue