From 03a5de64285e3f27740a264106158cfc7b7c2a96 Mon Sep 17 00:00:00 2001 From: thehomerepot Date: Tue, 22 Aug 2023 10:56:19 -0500 Subject: [PATCH] netbox: Update has_primary_ip to true Querying has_primary_ip requires the use of true/false Closes: #1 [via git-merge-pr] --- netbox/netbox.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)