Merge pull request #728 from atlassian/route_diff_fix

Route diff fix
This commit is contained in:
Sander van Harmelen 2015-01-05 10:43:02 +01:00
commit 54ab857a54
1 changed files with 2 additions and 7 deletions

View File

@ -123,13 +123,8 @@ func resourceAwsRouteTableRead(d *schema.ResourceData, meta interface{}) error {
m := make(map[string]interface{})
m["cidr_block"] = r.DestinationCidrBlock
if r.GatewayId != "" {
m["gateway_id"] = r.GatewayId
}
if r.InstanceId != "" {
m["instance_id"] = r.InstanceId
}
m["gateway_id"] = r.GatewayId
m["instance_id"] = r.InstanceId
route.Add(m)
}