mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 09:40:20 +00:00
Update state_events opt handling to be consistent
Updates the state_events opts handling to be consistent with how other opts are processed in state.py
This commit is contained in:
parent
bb3379b502
commit
cd5dc4ac6e
1 changed files with 3 additions and 2 deletions
|
@ -3742,8 +3742,9 @@ class BaseHighState:
|
|||
)
|
||||
opts["env_order"] = mopts.get("env_order", opts.get("env_order", []))
|
||||
opts["default_top"] = mopts.get("default_top", opts.get("default_top"))
|
||||
if "state_events" not in opts:
|
||||
opts["state_events"] = mopts.get("state_events")
|
||||
opts["state_events"] = (
|
||||
opts.get("state_events") or mopts.get("state_events") or False
|
||||
)
|
||||
opts["state_aggregate"] = (
|
||||
opts.get("state_aggregate") or mopts.get("state_aggregate") or False
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue