Use correct api path for devices. Idiot.
This commit is contained in:
parent
1f7e699718
commit
4f2515ba26
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue