providers/aws: fix up the route table errors

This commit is contained in:
Mitchell Hashimoto 2014-07-09 17:37:56 -07:00
parent 9c93cfbf75
commit 05fabb02bd
1 changed files with 3 additions and 3 deletions

View File

@ -108,7 +108,7 @@ func resource_aws_route_table_update(
"route": resultRoutes, "route": resultRoutes,
})) }))
return rs, nil return rs, err
} }
func resource_aws_route_table_destroy( func resource_aws_route_table_destroy(
@ -205,9 +205,9 @@ func routeTableOps(a interface{}, b interface{}) []routeTableOp {
// Build up the actual ec2.Route objects // Build up the actual ec2.Route objects
oldRoutes := make(map[string]ec2.Route) oldRoutes := make(map[string]ec2.Route)
newRoutes := make(map[string]ec2.Route) newRoutes := make(map[string]ec2.Route)
for _, raws := range []interface{}{a, b} { for i, raws := range []interface{}{a, b} {
result := oldRoutes result := oldRoutes
if raws == b { if i == 1 {
result = newRoutes result = newRoutes
} }