mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix failhard causing test=True to failhard too soon
This commit is contained in:
parent
a86e36cd31
commit
9b36904149
1 changed files with 2 additions and 0 deletions
|
@ -1809,6 +1809,8 @@ class State(object):
|
|||
tag = _gen_tag(low)
|
||||
if (low.get('failhard', False) or self.opts['failhard']
|
||||
and tag in running):
|
||||
if running[tag]['result'] is None:
|
||||
return False
|
||||
return not running[tag]['result']
|
||||
return False
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue