From f7e30347f610dcca545ce6f6ad2db47ab2e4ef94 Mon Sep 17 00:00:00 2001 From: Joe Maller Date: Sun, 13 Oct 2013 01:22:53 -0400 Subject: [PATCH] ignore src when file module state=absent --- files/file | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/file b/files/file index dd17b9ca02f..6ec5e96de2e 100644 --- a/files/file +++ b/files/file @@ -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)