We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39f0616 commit f1627feCopy full SHA for f1627fe
1 file changed
internal/namespaces/instance/v1/custom_server.go
@@ -441,10 +441,13 @@ func serverGetBuilder(c *core.Command) *core.Command {
441
customVol.State = blockVol.Status.String()
442
customVol.CreationDate = blockVol.CreatedAt
443
customVol.ModificationDate = blockVol.UpdatedAt
444
- if *blockVol.Specs.PerfIops == 5000 {
445
- customVol.IOPS = "5K"
446
- } else {
447
- customVol.IOPS = "15K"
+ if blockVol.Specs != nil && blockVol.Specs.PerfIops != nil {
+ switch *blockVol.Specs.PerfIops {
+ case 5000:
+ customVol.IOPS = "5K"
448
+ case 15000:
449
+ customVol.IOPS = "15K"
450
+ }
451
}
452
} else {
453
instanceVol, err := instance.NewAPI(client).GetVolume(&instance.GetVolumeRequest{
0 commit comments