mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
fix dci failure nxos (#32877)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user