Skip to content

Commit 8a43bc4

Browse files
authored
fix(instance): snapshot list: get snapshot using image.Zone (#4930)
1 parent 54063f6 commit 8a43bc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/namespaces/instance/v1/custom_image.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ func imageListBuilder(c *core.Command) *core.Command {
228228
if volume.VolumeType == instance.VolumeVolumeTypeSbsSnapshot {
229229
blockVolume, err := blockAPI.GetSnapshot(&block.GetSnapshotRequest{
230230
SnapshotID: volume.ID,
231-
Zone: volume.Zone,
231+
Zone: image.Zone,
232232
}, scw.WithContext(ctx))
233233
if err != nil {
234234
return nil, err

0 commit comments

Comments
 (0)