Adding raw check to nxos.py (#17659)

pull/17689/head
Gabriele 8 years ago committed by Peter Sprygada
parent 7889e1ffc1
commit cfd880dab8

@ -269,7 +269,7 @@ class Cli(NxapiConfigMixin, CliBase):
cmds = list(prepare_commands(commands)) cmds = list(prepare_commands(commands))
responses = self.execute(cmds) responses = self.execute(cmds)
for index, cmd in enumerate(commands): for index, cmd in enumerate(commands):
if cmd.output == 'json': if cmd.output == 'json' and cmd.args.get('raw') is False:
try: try:
responses[index] = json.loads(responses[index]) responses[index] = json.loads(responses[index])
except ValueError: except ValueError:

Loading…
Cancel
Save