This commit is contained in:
3
main.go
3
main.go
@@ -9,7 +9,6 @@ import (
|
||||
"log"
|
||||
"net/url"
|
||||
"os"
|
||||
"reflect"
|
||||
"strings"
|
||||
"time"
|
||||
_ "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
|
||||
// Sharing can be sharingNone or sharingMultiWriter
|
||||
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 {
|
||||
sharingType := info.Sharing
|
||||
|
||||
|
Reference in New Issue
Block a user