mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Account for trimmed value in 'salt -d' output
This commit is contained in:
parent
56e86a6e04
commit
58e16a0d39
@ -402,7 +402,9 @@ class SaltCMD(parsers.SaltCMDOptionParser):
|
||||
if isinstance(ret, str):
|
||||
self.exit(2, '{0}\n'.format(ret))
|
||||
for host in ret:
|
||||
if isinstance(ret[host], string_types) and ret[host].startswith("Minion did not return"):
|
||||
if isinstance(ret[host], string_types) \
|
||||
and (ret[host].startswith("Minion did not return")
|
||||
or ret[host] == 'VALUE TRIMMED'):
|
||||
continue
|
||||
for fun in ret[host]:
|
||||
if fun not in docs and ret[host][fun]:
|
||||
|
Loading…
Reference in New Issue
Block a user