mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #760 from sfromm/fixes
A couple fixes for the file module
This commit is contained in:
commit
e820c282be
1 changed files with 2 additions and 2 deletions
|
@ -224,7 +224,7 @@ def main():
|
|||
seuser = dict(),
|
||||
serole = dict(),
|
||||
selevel = dict(),
|
||||
secontext = dict(),
|
||||
setype = dict(),
|
||||
)
|
||||
)
|
||||
|
||||
|
@ -322,7 +322,7 @@ def main():
|
|||
else:
|
||||
abs_src = os.path.join(os.path.dirname(dest), src)
|
||||
if not os.path.exists(abs_src):
|
||||
module_fail_json(dest=dest, src=src, msg='src file does not exist')
|
||||
module_fail_json(path=path, src=src, msg='src file does not exist')
|
||||
|
||||
if prev_state == 'absent':
|
||||
os.symlink(src, path)
|
||||
|
|
Loading…
Reference in a new issue