fixing array length for aws instance volumes

This commit is contained in:
Luke Amdor 2014-11-30 08:24:23 -06:00
parent a5d444b8e3
commit f3ff4bece8
1 changed files with 1 additions and 1 deletions

View File

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