mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Set a safer default value for ret in saltmod
Tweak fix in #29122 after review with @basepi
This commit is contained in:
parent
2250a36647
commit
584efe81ee
1 changed files with 1 additions and 1 deletions
|
@ -248,7 +248,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:
|
||||
|
|
Loading…
Add table
Reference in a new issue