add and switch type usage to common library types

This commit is contained in:
2026-04-19 00:37:35 +00:00
parent 99bb5f0691
commit 3a759e0583
5 changed files with 30 additions and 76 deletions
+3 -1
View File
@@ -4,6 +4,8 @@ import (
"fmt"
"log"
"strings"
paas "proxmoxaas-fabric/paas-common-lib"
)
func (cluster *Cluster) Init(pve ProxmoxClient) {
@@ -241,7 +243,7 @@ func (instance *Instance) RebuildVolume(host *Node, volid string) error {
return err
}
voltype := AnyPrefixes(volid, VolumeTypes)
voltype := AnyPrefixes(volid, paas.VolumeTypes)
volume.Type = voltype
volume.Volume_ID = VolumeID(volid)
instance.Volumes[VolumeID(volid)] = volume