mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge remote-tracking branch 'upstream/2015.5' into merge-forward-2015.8
This commit is contained in:
commit
1432cc806d
1 changed files with 2 additions and 2 deletions
|
@ -240,7 +240,7 @@ def state(
|
|||
if 'return' in mdata and 'ret' not in mdata:
|
||||
mdata['ret'] = mdata.pop('return')
|
||||
|
||||
m_state = None
|
||||
m_state = True
|
||||
if mdata.get('failed', False):
|
||||
m_state = False
|
||||
else:
|
||||
|
@ -248,7 +248,7 @@ def state(
|
|||
m_ret = mdata['ret']
|
||||
except KeyError:
|
||||
m_state = False
|
||||
if m_state is None:
|
||||
if not m_state:
|
||||
m_state = salt.utils.check_state_result(m_ret)
|
||||
|
||||
if not m_state:
|
||||
|
|
Loading…
Add table
Reference in a new issue