File tree Expand file tree Collapse file tree
cmk/plugins/collection/agent_based Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33# This file is part of Checkmk (https://checkmk.com). It is subject to the terms and
44# conditions defined in the file COPYING, which is part of this source code package.
55
6- # mypy: disable-error-code="no-untyped-def"
7-
86from collections .abc import Mapping , Sequence
97from contextlib import suppress
108from typing import Any
@@ -87,10 +85,14 @@ def check_sap_hana_data_volume(
8785 yield Result (state = State .OK , summary = "Path: %s" % path )
8886
8987
90- def cluster_check_sap_hana_data_volume (item , params , section ):
88+ def cluster_check_sap_hana_data_volume (
89+ item : str ,
90+ params : Mapping [str , Any ],
91+ section : Mapping [str , sap_hana .ParsedSection | None ],
92+ ) -> CheckResult :
9193 yield Result (state = State .OK , summary = "Nodes: %s" % ", " .join (section .keys ()))
9294 for node_section in section .values ():
93- if item in node_section :
95+ if node_section is not None and item in node_section :
9496 yield from check_sap_hana_data_volume (item , params , node_section )
9597 return
9698
You can’t perform that action at this time.
0 commit comments