ignore src when file module state=absent

reviewable/pr18780/r1
Joe Maller 11 years ago
parent 2753a40d5a
commit f7e30347f6

@ -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)

Loading…
Cancel
Save