Verified Commit a02e0772 authored by Andrey Vertiprahov's avatar Andrey Vertiprahov
Browse files

Discovery.get_neighbor_by_hostname ignore when find hostname.

parent b7ae4b35
Pipeline #35967 passed with stages
in 17 minutes and 21 seconds
......@@ -1002,7 +1002,7 @@ class TopologyDiscoveryCheck(DiscoveryCheck):
Resolve neighbor by hostname
"""
if hostname not in self.neighbor_hostname_cache:
hosts = DiscoveryID.objects.filter(hostname=hostname)[:2]
hosts = DiscoveryID.objects.filter(hostname__iexact=hostname)[:2]
n = None
if len(hosts) == 1:
n = hosts[0].object
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment