Merge pull request #29122 from cachedout/issue_29110

Fix broken state orchestration
This commit is contained in:
Nicole Thomas 2015-11-23 09:24:18 -07:00
commit 2250a36647

View file

@ -248,6 +248,7 @@ def state(
if 'return' in mdata and 'ret' not in mdata:
mdata['ret'] = mdata.pop('return')
m_state = None
if mdata.get('failed', False):
m_state = False
else:
@ -255,7 +256,7 @@ def state(
m_ret = mdata['ret']
except KeyError:
m_state = False
if not m_state:
if m_state is None:
m_state = salt.utils.check_state_result(m_ret)
if not m_state: