Fix error handling

reviewable/pr18780/r1
GGabriele 8 years ago
parent 47ce78de3e
commit c6c0ff42ed

@ -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