Skip to content

Commit 9520b56

Browse files
authored
fix(instance): image update with invalid uuid (#3467)
1 parent 22c2e53 commit 9520b56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/namespaces/instance/v1/custom_image.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package instance
22

33
import (
44
"context"
5+
"fmt"
56
"reflect"
67
"sort"
78
"strconv"
@@ -11,7 +12,6 @@ import (
1112
"github.com/scaleway/scaleway-cli/v2/internal/core"
1213
"github.com/scaleway/scaleway-cli/v2/internal/human"
1314
"github.com/scaleway/scaleway-sdk-go/api/instance/v1"
14-
"github.com/scaleway/scaleway-sdk-go/logger"
1515
"github.com/scaleway/scaleway-sdk-go/scw"
1616
)
1717

@@ -357,7 +357,7 @@ func imageUpdateCommand() *core.Command {
357357
ImageID: request.ImageID,
358358
})
359359
if err != nil {
360-
logger.Warningf("cannot get image %s: %s", request.Name, err)
360+
return nil, fmt.Errorf("cannot get image %s: %w", request.ImageID, err)
361361
}
362362

363363
if request.Name == nil {

0 commit comments

Comments
 (0)