Add forgotten "?"

This commit is contained in:
Kalle Carlbark 2019-09-11 20:26:54 +02:00
parent 037c44b93f
commit 69e732abcd
No known key found for this signature in database
GPG key ID: 3FC0C93C5A5A0670

View file

@ -206,7 +206,7 @@ func (n *NetBox) ListDevices(d *Dcim_Devices_List, f *DeviceFilter) error {
deviceurl := n.RootURL + "/api/dcim/devices/"
var request *http.Request
if len(query) > 0 {
deviceurl = deviceurl + query
deviceurl = deviceurl + "?" + query
}
request, err = http.NewRequest("GET", deviceurl, nil)
if err != nil {