Fixes #4884 Do not prematurely exit from file module if src not defined

reviewable/pr18780/r1
James Tanner 11 years ago
parent ccad333395
commit 53ba890312

@ -186,11 +186,7 @@ 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
# set state to current type of file
state = prev_state
elif state is None:
# set default state to file

Loading…
Cancel
Save