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:
Andrei Ozerov 2018-05-24 15:37:18 +03:00 committed by Rickard von Essen
parent 357ff19c52
commit 3316d40527
1 changed files with 0 additions and 4 deletions

View File

@ -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 == "" {