fix dci failure nxos (#32877)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
parent
a17244f896
commit
ceefeeb279
1 changed files with 1 additions and 1 deletions
|
@ -169,7 +169,7 @@ class Cli:
|
||||||
except ValueError:
|
except ValueError:
|
||||||
out = to_text(out).strip()
|
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'])
|
self._module.fail_json(msg='failed to retrieve output of %s in json format' % item['command'])
|
||||||
|
|
||||||
responses.append(out)
|
responses.append(out)
|
||||||
|
|
Loading…
Reference in a new issue