From d7bf99be52fe4180ed0a7f55d86a6905ac5f205d Mon Sep 17 00:00:00 2001 From: Kalle Carlbark Date: Mon, 24 Feb 2020 15:29:51 +0100 Subject: [PATCH] Update Face to string 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 6c1234c..fac75a0 100644 --- a/netbox_devices.go +++ b/netbox_devices.go @@ -76,7 +76,7 @@ type DcimDevicesList struct { Position int `json:"position"` Face struct { Label string `json:"label"` - Value int `json:"value"` + Value string `json:"value"` } `json:"face"` ParentDevice struct { ID int `json:"id"`