Skip to content

Commit

Permalink
Fix hardcoded netbox URL
Browse files Browse the repository at this point in the history
  • Loading branch information
russss committed May 28, 2024
1 parent 9084128 commit 2dd57cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dk_geojson/generate_dk_geojson.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,14 @@ def device_info(device):

props = {
"name": location["name"],
"netbox_url": f"https://netbox.c3noc.net/dcim/locations/{location.id}/",
"netbox_url": f"{NETBOX_URL}/dcim/locations/{location.id}/",
"devices": sorted(
(device_info(device) for device in devices), key=lambda x: x["type"]
),
"racks": [
{
"name": rack.name,
"url": f"https://netbox.c3noc.net/dcim/racks/{rack.id}",
"url": f"{NETBOX_URL}/dcim/racks/{rack.id}",
}
for rack in racks
],
Expand Down

0 comments on commit 2dd57cb

Please sign in to comment.