def _integrate_attributes( attributes: Attributes, inventory_tree: StructuredDataTree, status_data_tree: StructuredDataTree, ) -> None: leg_path = ".".join(attributes.path) + "." if attributes.inventory_attributes: inventory_tree.get_dict(leg_path).update(attributes.inventory_attributes) if attributes.status_attributes: status_data_tree.get_dict(leg_path).update(attributes.status_attributes)
def _set_cluster_property( inventory_tree: StructuredDataTree, host_config: config.HostConfig, ) -> None: inventory_tree.get_dict( "software.applications.check_mk.cluster.")["is_cluster"] = host_config.is_cluster