def fixture_settings(): return ec.settings( "1.2.3i45", cmk.utils.paths.omd_root, pathlib.Path(cmk.utils.paths.default_config_dir), ["mkeventd"], )
def eventd_configuration(): global cached_config if cached_config and cached_config[0] is html: return cached_config[1] settings = ec.settings('', Path(cmk.utils.paths.omd_root), Path(cmk.utils.paths.default_config_dir), ['']) cfg = ec.load_config(settings) cached_config = (html, cfg) return cfg
def eventd_configuration() -> ec.ConfigFromWATO: global cached_config # TODO: Huh??? Why do we use html simply as a tag here??? if cached_config and cached_config[0] is html: return cached_config[1] settings = ec.settings('', Path(cmk.utils.paths.omd_root), Path(cmk.utils.paths.default_config_dir), ['']) cfg = ec.load_config(settings) cached_config = (html, cfg) return cfg
def fixture_settings(): return ec.settings('1.2.3i45', pathlib.Path(cmk.utils.paths.omd_root), pathlib.Path(cmk.utils.paths.default_config_dir), ['mkeventd'])
def _eventd_configuration() -> ec.ConfigFromWATO: return ec.load_config( ec.settings( "", Path(cmk.utils.paths.omd_root), Path(cmk.utils.paths.default_config_dir), [""] ) )