if filter is nil.
This commit is contained in:
parent
7fb13bea74
commit
315815cf9d
1 changed files with 1 additions and 2 deletions
|
@ -198,8 +198,7 @@ func (n *NetBox) ListDevices(d *Dcim_Devices_List, f *DeviceFilter) error {
|
||||||
Transport: transport,
|
Transport: transport,
|
||||||
}
|
}
|
||||||
deviceurl := n.RootURL + "/api/devices/"
|
deviceurl := n.RootURL + "/api/devices/"
|
||||||
if (&DeviceFilter{} != f) {
|
if f != nil {
|
||||||
fmt.Println("hoj")
|
|
||||||
form := url.Values{}
|
form := url.Values{}
|
||||||
err := encoder.Encode(f, form)
|
err := encoder.Encode(f, form)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue