From 53ba8903127f1fc891af3e0fda222179bb6965a7 Mon Sep 17 00:00:00 2001 From: James Tanner Date: Tue, 12 Nov 2013 18:17:20 -0500 Subject: [PATCH] Fixes #4884 Do not prematurely exit from file module if src not defined --- files/file | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/files/file b/files/file index 13a675c20c2..01772a7e71c 100644 --- a/files/file +++ b/files/file @@ -186,12 +186,8 @@ def main(): prev_state = 'file' if prev_state is not None and state is None: - if not params.get('src', None): - # idempotent exit if state is not specified - module.exit_json(path=path, changed=False) - else: - # src is defined, need to process other operations - state = prev_state + # set state to current type of file + state = prev_state elif state is None: # set default state to file state = 'file'