make sure IOPS is not set for empty VolumeType

This commit is contained in:
Jan Schumann 2015-06-10 17:21:25 +02:00
parent 5d600c70f2
commit 802cfa3871
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ func buildBlockDevices(b []BlockDevice) []*ec2.BlockDeviceMapping {
}
// IOPS is only valid for SSD Volumes
if blockDevice.VolumeType != "standard" && blockDevice.VolumeType != "gp2" {
if blockDevice.VolumeType != "" && blockDevice.VolumeType != "standard" && blockDevice.VolumeType != "gp2" {
ebsBlockDevice.IOPS = &blockDevice.IOPS
}