providers/aws: iops in root device skipped when output state
This commit is contained in:
parent
d2c6ae0741
commit
30941dfdc4
|
@ -482,6 +482,7 @@ func resourceAwsInstanceRead(d *schema.ResourceData, meta interface{}) error {
|
|||
blockDevice["device_name"] = blockDevices[vol.VolumeId].DeviceName
|
||||
blockDevice["volume_type"] = vol.VolumeType
|
||||
blockDevice["volume_size"] = volSize
|
||||
blockDevice["iops"] = vol.IOPS
|
||||
blockDevice["delete_on_termination"] =
|
||||
blockDevices[vol.VolumeId].DeleteOnTermination
|
||||
|
||||
|
@ -494,7 +495,6 @@ func resourceAwsInstanceRead(d *schema.ResourceData, meta interface{}) error {
|
|||
|
||||
blockDevice["snapshot_id"] = vol.SnapshotId
|
||||
blockDevice["encrypted"] = vol.Encrypted
|
||||
blockDevice["iops"] = vol.IOPS
|
||||
nonRootBlockDevices = append(nonRootBlockDevices, blockDevice)
|
||||
}
|
||||
d.Set("block_device", nonRootBlockDevices)
|
||||
|
|
Loading…
Reference in New Issue