func (vs *VSphere) initVolumeOptions(volumeOptions *VolumeOptions) {
	if volumeOptions == nil {
		volumeOptions = &VolumeOptions{}
	}
	if volumeOptions.Datastore == "" {
		volumeOptions.Datastore = vs.Config.DefaultDatastore
	}
	if volumeOptions.CapacityKB == 0 {
		volumeOptions.CapacityKB = defaultDiskCapacityKB
	}
	if volumeOptions.Name == "" {
		volumeOptions.Name = "e2e-vmdk-" + strconv.FormatInt(time.Now().UnixNano(), 10)
	}
	if volumeOptions.DiskFormat == "" {
		volumeOptions.DiskFormat = defaultDiskFormat
	}
	if volumeOptions.SCSIControllerType == "" {
		volumeOptions.SCSIControllerType = defaultSCSIControllerType
	}
}
// initVolumeOptions function sets default values for volumeOptions parameters if not set
initVolumeOptions function sets default values for volumeOptions parameters if not set
// initVolumeOptions function sets default values for volumeOptions parameters if not set
func (vs *VSphere) initVolumeOptions(volumeOptions *VolumeOptions) {
	if volumeOptions == nil {
		volumeOptions = &VolumeOptions{}
	}
	if volumeOptions.Datastore == "" {
		volumeOptions.Datastore = vs.Config.DefaultDatastore
	}
	if volumeOptions.CapacityKB == 0 {
		volumeOptions.CapacityKB = defaultDiskCapacityKB
	}
	if volumeOptions.Name == "" {
		volumeOptions.Name = "e2e-vmdk-" + strconv.FormatInt(time.Now().UnixNano(), 10)
	}
	if volumeOptions.DiskFormat == "" {
		volumeOptions.DiskFormat = defaultDiskFormat
	}
	if volumeOptions.SCSIControllerType == "" {
		volumeOptions.SCSIControllerType = defaultSCSIControllerType
	}
}
func ( vs * VSphere ) initVolumeOptions ( volumeOptions * VolumeOptions ) { if volumeOptions == nil { volumeOptions = & VolumeOptions { } } if volumeOptions . Datastore == " " { volumeOptions . Datastore = vs . Config . DefaultDatastore } if volumeOptions . CapacityKB == 0 { volumeOptions . CapacityKB = defaultDiskCapacityKB } if volumeOptions . Name == " " { volumeOptions . Name = " " + strconv . FormatInt ( time . Now ( ) . UnixNano ( ) , 10 ) } if volumeOptions . DiskFormat == " " { volumeOptions . DiskFormat = defaultDiskFormat } if volumeOptions . SCSIControllerType == " " { volumeOptions . SCSIControllerType = defaultSCSIControllerType } }
initVolumeOptions function sets default values for volumeOptions parameters if not set
initVolumeOptions function sets default values for volumeOptions parameters if not set