コード例 #1
0
    def filter_matches(self, crit, value, hostname):
        if value is None:  # Host does not have this attribute
            value = ""

        return host_attribute_matches(crit, value)
コード例 #2
0
ファイル: host_attributes.py プロジェクト: m3rlinux/checkmk
    def filter_matches(self, crit: str, value: Optional[str],
                       hostname: HostName) -> bool:
        if value is None:  # Host does not have this attribute
            value = ""

        return host_attribute_matches(crit, value)