summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathaniel Case <this.is@nathanielca.se>2016-04-25 13:26:06 -0400
committerNathaniel Case <this.is@nathanielca.se>2016-04-25 13:26:06 -0400
commitb466f7bbe2a9f9c3aaf901df79e6cb3773d6efec (patch)
tree0856637850ccf1581605c16486da7a31a9d27380
parent426e9a357db46c59ec1f29a6ac155dfb0dcb6cf5 (diff)
downloadansible-modules-core-b466f7bbe2a9f9c3aaf901df79e6cb3773d6efec.tar.gz
Remove unnecessary exception from nxos_command (#3521)
-rw-r--r--network/nxos/nxos_command.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/network/nxos/nxos_command.py b/network/nxos/nxos_command.py
index 21a6b566..2e09584d 100644
--- a/network/nxos/nxos_command.py
+++ b/network/nxos/nxos_command.py
@@ -157,12 +157,8 @@ def main():
kwargs['command_type'] = 'cli_show'
while retries > 0:
- try:
- response = module.execute(commands, **kwargs)
- result['stdout'] = response
- except ShellError, exc:
- module.fail_json(msg='failed to run commands', exc=exc.message,
- command=exc.command)
+ response = module.execute(commands, **kwargs)
+ result['stdout'] = response
for index, cmd in enumerate(commands):
if cmd.endswith('json'):