mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
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))
|
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…
Reference in a new issue