From d0960926e119bea22ccf7ff91b7ab6c706f5636f Mon Sep 17 00:00:00 2001 From: pauhull Date: Thu, 19 Oct 2023 18:02:22 +0200 Subject: [PATCH] fix(floating-ip): list command only returns first 50 entries On the FloatingIPClient List was used instead of AllWithOpts, which resulted in "list" only returning the first 50 entries. --- internal/cmd/floatingip/list.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cmd/floatingip/list.go b/internal/cmd/floatingip/list.go index de00ab6f..60c7c71f 100644 --- a/internal/cmd/floatingip/list.go +++ b/internal/cmd/floatingip/list.go @@ -25,7 +25,7 @@ var ListCmd = base.ListCmd{ if len(sorts) > 0 { opts.Sort = sorts } - floatingIPs, _, err := client.FloatingIP().List(ctx, opts) + floatingIPs, err := client.FloatingIP().AllWithOpts(ctx, opts) var resources []interface{} for _, n := range floatingIPs {