Adding raw check to nxos.py (#17659)

This commit is contained in:
Gabriele 2016-09-21 11:35:56 +02:00 committed by Peter Sprygada
parent 7889e1ffc1
commit cfd880dab8

View file

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