def find_matching_node_name(self, host: ClusterHost, nodes: List[Node]) -> Union[(str, None)]:
    for node in nodes:
        for mac in node.macs:
            if (mac.lower() in host.macs()):
                return node.name
    if self._config.is_static_ip:
        mappings = static_network.get_name_to_mac_addresses_mapping(self.nodes.controller.tf_folder)
        for mac in host.macs():
            for (name, macs) in mappings.items():
                if (mac in macs):
                    return name
    return None
def find_matching_node_name(self, host: ClusterHost, nodes: List[Node]) -> Union[(str, None)]:
    for node in nodes:
        for mac in node.macs:
            if (mac.lower() in host.macs()):
                return node.name
    if self._config.is_static_ip:
        mappings = static_network.get_name_to_mac_addresses_mapping(self.nodes.controller.tf_folder)
        for mac in host.macs():
            for (name, macs) in mappings.items():
                if (mac in macs):
                    return name
    return None