Skip to content
This repository has been archived by the owner on Jun 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request #350 from JakeWarner/patch-2
Browse files Browse the repository at this point in the history
Available Addresses call doesn't utilize CIDR
  • Loading branch information
displague authored Oct 24, 2022
2 parents 1d7ae3f + c67beff commit aaae6b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ func (i *ProjectIPServiceOp) AvailableAddresses(ipReservationID string, r *Avail
}

opts := &GetOptions{}
opts.Filter("cidr", strconv.Itoa(r.CIDR))
opts = opts.Filter("cidr", strconv.Itoa(r.CIDR))

endpointPath := path.Join(ipBasePath, ipReservationID, "available")
apiPathQuery := opts.WithQuery(endpointPath)
Expand Down

0 comments on commit aaae6b5

Please sign in to comment.