Remove unnecessary exception from nxos_command (#3521)

This commit is contained in:
Nathaniel Case 2016-04-25 13:26:06 -04:00
parent 426e9a357d
commit b466f7bbe2

View file

@ -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)
for index, cmd in enumerate(commands):
if cmd.endswith('json'):