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,
|
Timeout: timeout,
|
||||||
Transport: transport,
|
Transport: transport,
|
||||||
}
|
}
|
||||||
deviceurl := n.RootURL + "/api/devices/"
|
deviceurl := n.RootURL + "/api/dcim/devices/"
|
||||||
if f != nil {
|
if f != nil {
|
||||||
form := url.Values{}
|
form := url.Values{}
|
||||||
err := encoder.Encode(f, form)
|
err := encoder.Encode(f, form)
|
||||||
|
|
Loading…
Reference in a new issue