make sure IOPS is not set for empty VolumeType
This commit is contained in:
parent
5d600c70f2
commit
802cfa3871
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue