Use correct api path for devices. Idiot.

This commit is contained in:
Kalle Carlbark 2019-09-11 21:01:23 +02:00
parent 1f7e699718
commit 4f2515ba26
No known key found for this signature in database
GPG key ID: 3FC0C93C5A5A0670

View file

@ -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)