Merge pull request #4264 from h-imaoka/b-aws-vpce-fix

providers_aws_vpce issue #4137
This commit is contained in:
Clint 2015-12-18 14:10:01 -06:00
commit 058b55635e
1 changed files with 2 additions and 2 deletions

View File

@ -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
}