From 8597bf6bba74ed4c83e63742c30e9a58023a4ed7 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 --- library/files/file | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/files/file b/library/files/file index dd17b9ca02..6ec5e96de2 100644 --- a/library/files/file +++ b/library/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)