mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #28012 from rallytime/fix-28010
Clean up stack trace when something goes wrong with minion output
This commit is contained in:
commit
d41018fa8e
@ -251,8 +251,12 @@ def state(
|
||||
if mdata.get('failed', False):
|
||||
m_state = False
|
||||
else:
|
||||
m_ret = mdata['ret']
|
||||
m_state = salt.utils.check_state_result(m_ret)
|
||||
try:
|
||||
m_ret = mdata['ret']
|
||||
except KeyError:
|
||||
m_state = False
|
||||
if not m_state:
|
||||
m_state = salt.utils.check_state_result(m_ret)
|
||||
|
||||
if not m_state:
|
||||
if minion not in fail_minions:
|
||||
|
Loading…
Reference in New Issue
Block a user