Skip to content

Commit

Permalink
netbox: Update has_primary_ip to true
Browse files Browse the repository at this point in the history
Querying has_primary_ip requires the use of true/false

Closes: #1 [via git-merge-pr]
  • Loading branch information
thehomerepot authored and the-maldridge committed Aug 23, 2023
1 parent 414d70b commit 03a5de6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netbox/netbox.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 03a5de6

Please sign in to comment.