Merge pull request #615 from Banno/fix-aws-instance-block-devices-index-range

fixing array length for aws instance volumes
This commit is contained in:
Armon Dadgar 2014-12-03 12:00:31 -08:00
commit a2c8859f04
1 changed files with 1 additions and 1 deletions

View File

@ -376,7 +376,7 @@ func resourceAwsInstanceRead(d *schema.ResourceData, meta interface{}) error {
return err
}
bds := make([]map[string]interface{}, len(instance.BlockDevices))
bds := make([]map[string]interface{}, len(volResp.Volumes))
for i, vol := range volResp.Volumes {
bds[i] = make(map[string]interface{})
bds[i]["device_name"] = bdByVolID[vol.VolumeId].DeviceName