func (vs *VSphere) GetVMByUUID(ctx context.Context, vmUUID string, dc object.Reference) (object.Reference, error) {
	Connect(ctx, vs)
	datacenter := vs.GetDatacenterFromObjectReference(ctx, dc)
	s := object.NewSearchIndex(vs.Client.Client)
	vmUUID = strings.ToLower(strings.TrimSpace(vmUUID))
	return s.FindByUuid(ctx, datacenter, vmUUID, true, nil)
}
// GetVMByUUID returns the VM object Reference from the given vmUUID
GetVMByUUID returns the VM object Reference from the given vmUUID
// GetVMByUUID returns the VM object Reference from the given vmUUID
func (vs *VSphere) GetVMByUUID(ctx context.Context, vmUUID string, dc object.Reference) (object.Reference, error) {
	Connect(ctx, vs)
	datacenter := vs.GetDatacenterFromObjectReference(ctx, dc)
	s := object.NewSearchIndex(vs.Client.Client)
	vmUUID = strings.ToLower(strings.TrimSpace(vmUUID))
	return s.FindByUuid(ctx, datacenter, vmUUID, true, nil)
}
func ( vs * VSphere ) GetVMByUUID ( ctx context . Context , vmUUID string , dc object . Reference ) ( object . Reference , error ) { Connect ( ctx , vs ) datacenter := vs . GetDatacenterFromObjectReference ( ctx , dc ) s := object . NewSearchIndex ( vs . Client . Client ) vmUUID = strings . ToLower ( strings . TrimSpace ( vmUUID ) ) return s . FindByUuid ( ctx , datacenter , vmUUID , true , nil ) }
GetVMByUUID returns the VM object Reference from the given vmUUID
GetVMByUUID returns the VM object Reference from the given vmUUID