Skip to content

Commit 7033e27

Browse files
authored
fix(instance_server): use server volume to fetch volumes (#2782)
Instance API currently miss zone when returning sbs volumes
1 parent 43dab7b commit 7033e27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/services/instance/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ func ResourceInstanceServerRead(ctx context.Context, d *schema.ResourceData, m i
698698

699699
vol, err := api.GetUnknownVolume(&GetUnknownVolumeRequest{
700700
VolumeID: volume.ID,
701-
Zone: volume.Zone,
701+
Zone: server.Zone,
702702
})
703703
if err != nil {
704704
return diag.FromErr(fmt.Errorf("failed to read instance volume %s: %w", volume.ID, err))

0 commit comments

Comments
 (0)