From cfd880dab89b7ae3e2b9c13622d27997bc738094 Mon Sep 17 00:00:00 2001 From: Gabriele Date: Wed, 21 Sep 2016 11:35:56 +0200 Subject: [PATCH] Adding raw check to nxos.py (#17659) --- lib/ansible/module_utils/nxos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/module_utils/nxos.py b/lib/ansible/module_utils/nxos.py index 058c0b946f..f4cd90e0c3 100644 --- a/lib/ansible/module_utils/nxos.py +++ b/lib/ansible/module_utils/nxos.py @@ -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: