Fix error handling

pull/18777/head
GGabriele 9 years ago committed by Matt Clay
parent 1d393941c0
commit 4ee018e51d

@ -853,7 +853,8 @@ def main():
try:
apply_patch(module, commands)
changed=True
except Exception as e:
except ShellError:
e = get_exception()
module.fail_json(msg=str(e))
module.exit_json(changed=changed,

Loading…
Cancel
Save