Skip to content

Commit 48dc8e8

Browse files
authored
fix(instance_server): change from private image failed with marketplace (#2206)
1 parent 96e3657 commit 48dc8e8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scaleway/resource_instance_server.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,6 +1248,10 @@ func customDiffInstanceServerImage(ctx context.Context, diff *schema.ResourceDif
12481248
LocalImageID: server.Server.Image.ID,
12491249
}, scw.WithContext(ctx))
12501250
if err != nil {
1251+
// If UUID is not in marketplace, then it's an image change
1252+
if is404Error(err) {
1253+
return diff.ForceNew("image")
1254+
}
12511255
return err
12521256
}
12531257
if marketplaceImage.Label != image.ID {

0 commit comments

Comments
 (0)