add disk type (prefix) to instance volume model

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

No files matched your search

+3
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