func QueryDiskType(client *govmomi.Client, name string, dc *object.Datacenter) (types.VirtualDiskType, error) {
	vdm := object.NewVirtualDiskManager(client.Client)
	ctx, cancel := context.WithTimeout(context.Background(), provider.DefaultAPITimeout)
	defer cancel()
	di, err := vdm.QueryVirtualDiskInfo(ctx, name, dc, false)
	if err != nil {
		return types.VirtualDiskType(""), err
	}
	t := di[0].DiskType
	log.Printf("[DEBUG] QueryDiskType: Disk %q is of type %q", name, t)
	return types.VirtualDiskType(t), nil
}
func QueryDiskType(client *govmomi.Client, name string, dc *object.Datacenter) (types.VirtualDiskType, error) {
	vdm := object.NewVirtualDiskManager(client.Client)
	ctx, cancel := context.WithTimeout(context.Background(), provider.DefaultAPITimeout)
	defer cancel()
	di, err := vdm.QueryVirtualDiskInfo(ctx, name, dc, false)
	if err != nil {
		return types.VirtualDiskType(""), err
	}
	t := di[0].DiskType
	log.Printf("[DEBUG] QueryDiskType: Disk %q is of type %q", name, t)
	return types.VirtualDiskType(t), nil
}
// QueryDiskType queries the disk type of the specified virtual disk.