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:
Barney Sowood 2022-12-16 16:55:02 +00:00
parent bb3379b502
commit cd5dc4ac6e

View file

@ -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
)