Skip to content

Commit

Permalink
fix dci failure nxos (#32877)
Browse files Browse the repository at this point in the history
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
  • Loading branch information
trishnaguha committed Nov 14, 2017
1 parent a17244f commit ceefeeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ansible/module_utils/nxos.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def run_commands(self, commands, check_rc=True):
except ValueError:
out = to_text(out).strip()

if item['output'] == 'json' and isinstance(out, string_types):
if item['output'] == 'json' and out != 'ok' and isinstance(out, string_types):
self._module.fail_json(msg='failed to retrieve output of %s in json format' % item['command'])

responses.append(out)
Expand Down

0 comments on commit ceefeeb

Please sign in to comment.