OpenStack builder: make volume type optional
Volume type parameter should be optional as described in API reference: https://developer.openstack.org/api-ref/block-storage/v3/#create-a-volume It should be enforced by the OpenStack cluster if not specified.
This commit is contained in:
parent
357ff19c52
commit
3316d40527
|
@ -96,10 +96,6 @@ func (c *RunConfig) Prepare(ctx *interpolate.Context) []error {
|
|||
}
|
||||
|
||||
if c.UseBlockStorageVolume {
|
||||
if c.VolumeType == "" {
|
||||
errs = append(errs, errors.New("A volume_type must be provided when use_blockstorage_volume is set to true"))
|
||||
}
|
||||
|
||||
// Use Compute instance availability zone for the Block Storage volume if
|
||||
// it's not provided.
|
||||
if c.VolumeAvailabilityZone == "" {
|
||||
|
|
Loading…
Reference in New Issue