vpc_endpoint bug fix.
This commit is contained in:
toshihisa 2015-12-12 01:15:54 +09:00
parent b26a85e5b2
commit bedd020dee
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
}