def _save_tags_and_update_hosts(self, tag_config): self._tag_config_file.save(tag_config) config.load_config() watolib.Folder.invalidate_caches() watolib.Folder.root_folder().rewrite_hosts_files()
def _update_tag_dependencies(): config.load_config() watolib.Folder.invalidate_caches() watolib.Folder.root_folder().rewrite_hosts_files()
def _update_host_custom_attrs(): config.load_config() Folder.invalidate_caches() Folder.root_folder().rewrite_hosts_files()
def _execute_sync(self) -> None: newest_host_labels = self._load_newest_host_labels_per_site() with (request_context := make_request_context()): # pylint: disable=superfluous-parens load_config()
def gui_context(environ: Optional[Mapping[str, Any]] = None) -> Iterator[None]: with application_context(), request_context(environ): load_config() yield
def get_tag_config_from_gui(): import cmk.gui.config as gui_config gui_config.load_config() return gui_config.tags
def initialize_gui_environment() -> None: load_all_plugins() load_config() set_super_user()