Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Commit 48a30a7

Browse files
committed
fix code due to dependencies update
1 parent d89f82e commit 48a30a7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/cloud/packet/client.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,9 @@ func (p *PacketClient) CreateIP(namespace, clusterName, projectID, facility stri
186186
func (p *PacketClient) GetIPByClusterIdentifier(namespace, name, projectID string) (packngo.IPAddressReservation, error) {
187187
var err error
188188
var reservedIP packngo.IPAddressReservation
189-
reservedIPs, _, err := p.ProjectIPs.List(projectID)
189+
190+
listOpts := &packngo.ListOptions{}
191+
reservedIPs, _, err := p.ProjectIPs.List(projectID, listOpts)
190192
if err != nil {
191193
return reservedIP, err
192194
}

0 commit comments

Comments
 (0)