From 4f2515ba26fdf34c8712a4b58aecfc189d99356f Mon Sep 17 00:00:00 2001 From: Kalle Carlbark Date: Wed, 11 Sep 2019 21:01:23 +0200 Subject: [PATCH] Use correct api path for devices. Idiot. --- netbox_devices.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox_devices.go b/netbox_devices.go index e0b3c10..9d2b2ff 100644 --- a/netbox_devices.go +++ b/netbox_devices.go @@ -196,7 +196,7 @@ func (n *NetBox) ListDevices(d *Dcim_Devices_List, f *DeviceFilter) error { Timeout: timeout, Transport: transport, } - deviceurl := n.RootURL + "/api/devices/" + deviceurl := n.RootURL + "/api/dcim/devices/" if f != nil { form := url.Values{} err := encoder.Encode(f, form)