Add forgotten "?"
This commit is contained in:
parent
037c44b93f
commit
69e732abcd
1 changed files with 1 additions and 1 deletions
|
@ -206,7 +206,7 @@ func (n *NetBox) ListDevices(d *Dcim_Devices_List, f *DeviceFilter) error {
|
||||||
deviceurl := n.RootURL + "/api/dcim/devices/"
|
deviceurl := n.RootURL + "/api/dcim/devices/"
|
||||||
var request *http.Request
|
var request *http.Request
|
||||||
if len(query) > 0 {
|
if len(query) > 0 {
|
||||||
deviceurl = deviceurl + query
|
deviceurl = deviceurl + "?" + query
|
||||||
}
|
}
|
||||||
request, err = http.NewRequest("GET", deviceurl, nil)
|
request, err = http.NewRequest("GET", deviceurl, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue