From 7fb13bea747c75060885a38d91af059c1121dade Mon Sep 17 00:00:00 2001 From: Kalle Carlbark Date: Wed, 11 Sep 2019 20:57:54 +0200 Subject: [PATCH] Add debugging. --- netbox_devices.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/netbox_devices.go b/netbox_devices.go index fb466be..4858e3d 100644 --- a/netbox_devices.go +++ b/netbox_devices.go @@ -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 {