Skip to content

Commit bd84e64

Browse files
author
Quentin Brosse
committed
fix
1 parent bad564f commit bd84e64

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

internal/namespaces/instance/v1/custom_image.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func imageCreateBuilder(c *core.Command) *core.Command {
3838

3939
originalRun := c.Run
4040

41-
c.Run = func(ctx context.Context, args interface{}) (i interface{}, e error) {
41+
c.Run = func(ctx context.Context, argsI interface{}) (i interface{}, e error) {
4242
args := argsI.(*customCreateImageRequest)
4343

4444
request := args.CreateImageRequest

internal/namespaces/instance/v1/custom_image_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ func Test_ImageCreate(t *testing.T) {
1515
core.ExecStoreBeforeCmd("Snapshot", `scw instance snapshot create volume-id={{ (index .Server.Volumes "0").ID }}`),
1616
),
1717
Commands: GetCommands(),
18-
Cmd: "scw instance image create root-volume={{ .Snapshot.Snapshot.ID }} arch=x86_64",
18+
Cmd: "scw instance image create snapshot-id={{ .Snapshot.Snapshot.ID }} arch=x86_64",
1919
Check: core.TestCheckCombine(
2020
core.TestCheckGolden(),
2121
core.TestCheckExitCode(0),

internal/namespaces/instance/v1/testdata/test-image-create-create-simple-image.stdout.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ organization 14d2f7ae-9775-414c-9bed-6810e060d500
99
public false
1010
root-volume 2184a2c8-0da8-4b06-8aec-3e3e2aedd571
1111
state available
12+
zone fr-par-1

0 commit comments

Comments
 (0)