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