Adding raw check to nxos.py (#17659)
This commit is contained in:
parent
7889e1ffc1
commit
cfd880dab8
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue