Skip to content

Commit 2fe8430

Browse files
authored
fix(instance): list images: pass arguments to the request (#5048)
1 parent 81623ad commit 2fe8430

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

internal/namespaces/instance/v1/custom_image.go

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,15 @@ func imageListBuilder(c *core.Command) *core.Command {
185185
// Get images
186186
args := argsI.(*customListImageRequest)
187187

188-
req := &instance.ListImagesRequest{}
189-
req.Organization = args.OrganizationID
190-
req.Project = args.ProjectID
191-
req.Public = scw.BoolPtr(false)
188+
req := &instance.ListImagesRequest{
189+
Organization: args.OrganizationID,
190+
Name: args.Name,
191+
Public: scw.BoolPtr(false),
192+
Arch: args.Arch,
193+
Project: args.ProjectID,
194+
Tags: args.Tags,
195+
}
196+
192197
client := core.ExtractClient(ctx)
193198
api := instance.NewAPI(client)
194199
blockAPI := block.NewAPI(client)

0 commit comments

Comments
 (0)