def filter_matches(self, crit, value, hostname): if value is None: # Host does not have this attribute value = "" return host_attribute_matches(crit, value)
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)