This commit is contained in:
3
main.go
3
main.go
@@ -9,7 +9,6 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
"net/url"
|
"net/url"
|
||||||
"os"
|
"os"
|
||||||
"reflect"
|
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
_ "time/tzdata"
|
_ "time/tzdata"
|
||||||
@@ -174,7 +173,7 @@ func processVMs(client *govmomi.Client) error {
|
|||||||
// See https://github.com/vmware/govmomi/blob/main/vim25/types/enum.go#L7538
|
// See https://github.com/vmware/govmomi/blob/main/vim25/types/enum.go#L7538
|
||||||
// Sharing can be sharingNone or sharingMultiWriter
|
// Sharing can be sharingNone or sharingMultiWriter
|
||||||
backing := vdisk.VirtualDevice.Backing
|
backing := vdisk.VirtualDevice.Backing
|
||||||
fmt.Println("Type of backing:", reflect.TypeOf(backing))
|
//fmt.Println("Type of backing:", reflect.TypeOf(backing))
|
||||||
if info, ok := backing.(*types.VirtualDiskFlatVer2BackingInfo); ok {
|
if info, ok := backing.(*types.VirtualDiskFlatVer2BackingInfo); ok {
|
||||||
sharingType := info.Sharing
|
sharingType := info.Sharing
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user