mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
ignore src when file module state=absent
This commit is contained in:
parent
9637f620d7
commit
8597bf6bba
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ def main():
|
||||||
if src:
|
if src:
|
||||||
src = os.path.expanduser(src)
|
src = os.path.expanduser(src)
|
||||||
|
|
||||||
if src is not None and os.path.isdir(path) and state != "link":
|
if src is not None and os.path.isdir(path) and state not in ["link", "absent"]:
|
||||||
params['path'] = path = os.path.join(path, os.path.basename(src))
|
params['path'] = path = os.path.join(path, os.path.basename(src))
|
||||||
|
|
||||||
file_args = module.load_file_common_arguments(params)
|
file_args = module.load_file_common_arguments(params)
|
||||||
|
|
Loading…
Reference in a new issue