mirror of
https://github.com/drygdryg/netbox-plugin-device-map.git
synced 2024-11-26 20:20:54 +03:00
Get the Lon/Lat fields correct in the comments too..
This commit is contained in:
parent
93f4691729
commit
a10435e101
@ -14,7 +14,7 @@ LatLon = tuple[float, float]
|
||||
|
||||
|
||||
def get_device_location(device: Device) -> LatLon | None:
|
||||
"""If netbox longitude and latitude fields are populated for a device then use them."""
|
||||
"""If netbox latitude and longitude fields are populated for a device then use them."""
|
||||
if device.latitude and device.longitude:
|
||||
return (device.latitude, device.longitude)
|
||||
"""... Otherwise extract device geolocation from special custom field"""
|
||||
|
Loading…
Reference in New Issue
Block a user