Commit c737f222 by jctanner

Merge pull request #4480 from joemaller/absent_path_fix

ignore src when file module state=absent
parents 51a1a54b 8597bf6b
......@@ -178,7 +178,7 @@ def main():
if 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))
file_args = module.load_file_common_arguments(params)
......
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