diff --git a/netbox/netbox.go b/netbox/netbox.go index 740d03e..0f43999 100644 --- a/netbox/netbox.go +++ b/netbox/netbox.go @@ -44,7 +44,7 @@ func (nb *Client) ListDevices(site, tag string) ([]Device, error) { queryURL.Path = "/api/dcim/devices/" queryVals := url.Values{} - queryVals.Add("has_primary_ip", "yes") + queryVals.Add("has_primary_ip", "true") if tag != "" { queryVals.Add("tag", tag)