Fix error handling

reviewable/pr18780/r1
GGabriele 9 years ago
parent ffb613febe
commit cb9f28c0d6

@ -799,7 +799,8 @@ def load_config(module, candidate):
def execute_config_command(commands, module):
try:
body = module.configure(commands)
except ShellError, clie:
except ShellError:
clie = get_exception()
module.fail_json(msg='Error sending CLI commands',
error=str(clie), commands=commands)
return body

Loading…
Cancel
Save