Closed codinja1188 closed 1 year ago
https://github.com/equinix-labs/metal-go/blob/main/docs/IPReservationList.md
for { ipReservationsPage, _, err := s.FindIPReservations(context.Background(), projectId).Types(types).Include(inc).Exclude(exc).PerPage(perPage).Execute() if err != nil { return nil, err } ipReservations = append(ipReservations, ipReservationsPage.GetIpAddresses()...) if ipReservationsPage.Meta.GetLastPage() > ipReservationsPage.Meta.GetCurrentPage() {. <--- Giving Error page = page + 1 continue } return ipReservations, nil }
Fixed: https://github.com/equinix-labs/metal-go/pull/140
https://github.com/equinix-labs/metal-go/blob/main/docs/IPReservationList.md