We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59dcef3 commit 0686b22Copy full SHA for 0686b22
internal/namespaces/instance/v1/custom_image.go
@@ -188,7 +188,14 @@ func imageListBuilder(c *core.Command) *core.Command {
188
req.Public = scw.BoolPtr(false)
189
client := core.ExtractClient(ctx)
190
api := instance.NewAPI(client)
191
- listImagesResponse, err := api.ListImages(req, scw.WithAllPages())
+
192
+ opts := []scw.RequestOption{scw.WithAllPages()}
193
+ if req.Zone == scw.Zone(core.AllLocalities) {
194
+ opts = append(opts, scw.WithZones(api.Zones()...))
195
+ req.Zone = ""
196
+ }
197
198
+ listImagesResponse, err := api.ListImages(req, opts...)
199
if err != nil {
200
return nil, err
201
}
0 commit comments