From d6623a46c9e69ea7eea8bcfe3f3427f4076c4318 Mon Sep 17 00:00:00 2001 From: Kalle Carlbark Date: Mon, 24 Feb 2020 15:25:26 +0100 Subject: [PATCH] Update to work with Netbox >= 2.7. --- netbox_devices.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox_devices.go b/netbox_devices.go index ae50fb7..6c1234c 100644 --- a/netbox_devices.go +++ b/netbox_devices.go @@ -86,7 +86,7 @@ type DcimDevicesList struct { } `json:"parent_device"` Status struct { Label string `json:"label"` - Value int `json:"value"` + Value string `json:"value"` } `json:"status"` PrimaryIP struct { ID int `json:"id"`