Add debugging.
This commit is contained in:
parent
dcf73c1daf
commit
7fb13bea74
1 changed files with 2 additions and 0 deletions
|
@ -3,6 +3,7 @@ package netboxgo
|
|||
import (
|
||||
"crypto/tls"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"github.com/gorilla/schema"
|
||||
"github.com/pkg/errors"
|
||||
"io/ioutil"
|
||||
|
@ -198,6 +199,7 @@ func (n *NetBox) ListDevices(d *Dcim_Devices_List, f *DeviceFilter) error {
|
|||
}
|
||||
deviceurl := n.RootURL + "/api/devices/"
|
||||
if (&DeviceFilter{} != f) {
|
||||
fmt.Println("hoj")
|
||||
form := url.Values{}
|
||||
err := encoder.Encode(f, form)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue