Fix for Support selection of datastore for dynamic provisioning in vSphere
This commit is contained in:
committed by
Ritesh H Shukla
parent
b201ac2f8f
commit
12f75f0b86
@@ -75,6 +75,8 @@ func (util *VsphereDiskUtil) CreateVolume(v *vsphereVolumeProvisioner) (vmDiskPa
|
||||
switch strings.ToLower(parameter) {
|
||||
case "diskformat":
|
||||
volumeOptions.DiskFormat = value
|
||||
case "datastore":
|
||||
volumeOptions.Datastore = value
|
||||
default:
|
||||
return "", 0, fmt.Errorf("invalid option %q for volume plugin %s", parameter, v.plugin.GetPluginName())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user