mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 09:40:20 +00:00
Fix master scheduler with when param
This commit is contained in:
parent
553ff63a38
commit
c7fc0df7fb
2 changed files with 4 additions and 1 deletions
1
changelog/62858.fixed
Normal file
1
changelog/62858.fixed
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Fixed master job scheduler using when
|
|
@ -1064,7 +1064,9 @@ class Schedule:
|
||||||
return
|
return
|
||||||
when_ = self.opts["pillar"]["whens"][i]
|
when_ = self.opts["pillar"]["whens"][i]
|
||||||
elif (
|
elif (
|
||||||
"whens" in self.opts["grains"] and i in self.opts["grains"]["whens"]
|
"grains" in self.opts
|
||||||
|
and "whens" in self.opts["grains"]
|
||||||
|
and i in self.opts["grains"]["whens"]
|
||||||
):
|
):
|
||||||
if not isinstance(self.opts["grains"]["whens"], dict):
|
if not isinstance(self.opts["grains"]["whens"], dict):
|
||||||
data[
|
data[
|
||||||
|
|
Loading…
Add table
Reference in a new issue