diff --git a/app/proxmox.go b/app/proxmox.go index eeb08a7..64e1ed6 100644 --- a/app/proxmox.go +++ b/app/proxmox.go @@ -234,6 +234,11 @@ func GetVolumeInfo(host *Node, volume string) (*Volume, error) { storageID := strings.Split(volume, ":")[0] volumeID := strings.Split(volume, ",")[0] + mp := "" + if strings.Contains(volume, "mp=") { + x := strings.Split(volume, "mp=")[1] + mp = strings.Split(x, ",")[0] + } storage, err := host.pvenode.Storage(context.Background(), storageID) if err != nil { return &volumeData, nil @@ -250,6 +255,7 @@ func GetVolumeInfo(host *Node, volume string) (*Volume, error) { volumeData.Format = c.Format volumeData.Size = uint64(c.Size) volumeData.File = volumeID + volumeData.MP = mp } } diff --git a/app/types.go b/app/types.go index 73aabb5..0573adf 100644 --- a/app/types.go +++ b/app/types.go @@ -68,6 +68,7 @@ type Volume struct { Format string `json:"format"` Size uint64 `json:"size"` File string `json:"file"` + MP string `json:"mp"` } type NetID string