parent
a17244f896
commit
ceefeeb279
|
@ -169,7 +169,7 @@ class Cli:
|
|||
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)
|
||||
|
|
Loading…
Reference in New Issue