Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
vpc_endpoint bug fix.
  • Loading branch information
h-imaoka committed Dec 11, 2015
1 parent b26a85e commit bedd020
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builtin/providers/aws/resource_aws_vpc_endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,12 @@ func resourceAwsVPCEndpointUpdate(d *schema.ResourceData, meta interface{}) erro
os := o.(*schema.Set)
ns := n.(*schema.Set)

add := expandStringList(os.Difference(ns).List())
add := expandStringList(ns.Difference(os).List())
if len(add) > 0 {
input.AddRouteTableIds = add
}

remove := expandStringList(ns.Difference(os).List())
remove := expandStringList(os.Difference(ns).List())
if len(remove) > 0 {
input.RemoveRouteTableIds = remove
}
Expand Down

0 comments on commit bedd020

Please sign in to comment.