def activate(self): if getattr(config, "mkeventd_enabled", False): mkeventd.execute_command("RELOAD", site=config.omd_site()) log_audit(None, "mkeventd-activate", _("Activated changes of event console configuration")) if hooks.registered('mkeventd-activate-changes'): hooks.call("mkeventd-activate-changes")
def activate(self, settings: Optional[SerializedSettings] = None) -> ConfigurationWarnings: if getattr(config, "mkeventd_enabled", False): mkeventd.execute_command("RELOAD", site=omd_site()) log_audit("mkeventd-activate", _("Activated changes of event console configuration")) if hooks.registered("mkeventd-activate-changes"): hooks.call("mkeventd-activate-changes") return []