Fix traceback in CLI output when value is trimmed

The comparison here was looking for the wrong string, causing the
trimmed value not to be detected and leading to a traceback several
lines later.
This commit is contained in:
Erik Johnson 2018-01-27 20:48:41 -06:00
parent 91b848debb
commit 966ad07452
No known key found for this signature in database
GPG key ID: 5E5583C437808F3F

View file

@ -406,7 +406,7 @@ class SaltCMD(parsers.SaltCMDOptionParser):
for host in ret:
if isinstance(ret[host], string_types) \
and (ret[host].startswith("Minion did not return")
or ret[host] == 'VALUE TRIMMED'):
or ret[host] == 'VALUE_TRIMMED'):
continue
for fun in ret[host]:
if fun not in docs and ret[host][fun]: