Name matching fixes 🩹

This commit is contained in:
Jokob-sk
2023-11-05 10:17:35 +11:00
parent 89fb5c9b3b
commit b86f1d75b5
3 changed files with 21 additions and 20 deletions

View File

@@ -287,8 +287,9 @@ def update_devices_names (db):
# Resolve with Pholus
if newName == nameNotFound:
# Try MAC matching
newName = resolve_device_name_pholus (device['dev_MAC'], device['dev_LastIP'], pholusResults, nameNotFound, False)
# Try IP matching only
# Try IP matching
if newName == nameNotFound:
newName = resolve_device_name_pholus (device['dev_MAC'], device['dev_LastIP'], pholusResults, nameNotFound, True)