add disk type (prefix) to instance volume model

This commit is contained in:
2025-04-08 23:41:33 +00:00
parent 6a65ca2021
commit 4ef3f76589
3 changed files with 27 additions and 1 deletions

View File

@@ -190,6 +190,9 @@ func (instance *Instance) RebuildVolume(host *Node, volid string) error {
return err
}
voltype := AnyPrefixes(volid, VolumeTypes)
volume.Type = voltype
instance.Volumes[VolumeID(volid)] = volume
return nil