mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Account for trimmed value in 'salt -d' output
This commit is contained in:
parent
909916c78e
commit
b3a5d549c1
1 changed files with 3 additions and 1 deletions
|
@ -372,7 +372,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…
Add table
Reference in a new issue