add disk type (prefix) to instance volume model
This commit is contained in:
1 parent
6a65ca2021
commit
4ef3f76589
3 files changed
+27
-1
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user