Skip to content

Commit

Permalink
fix(instance): getUnknownVolume SBS volume (#1869)
Browse files Browse the repository at this point in the history
  • Loading branch information
Codelax committed Oct 10, 2023
1 parent 5fe0fb5 commit 514d331
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/instance/v1/volume_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ func (s *API) getUnknownVolume(req *getUnknownVolumeRequest, opts ...scw.Request
for _, reference := range getVolumeResponse.References {
if reference.ProductResourceType == "instance_server" {
volume.ServerID = &reference.ProductResourceID
volume.Type = VolumeVolumeTypeSbsVolume
}
}
volume.Type = VolumeVolumeTypeSbsVolume
}

return volume, nil
Expand Down

0 comments on commit 514d331

Please sign in to comment.