fix ec2 classic security group changing

This commit is contained in:
Diego Rodriguez 2016-02-03 00:33:42 -08:00
parent bb4c58a683
commit cfafa3f574
1 changed files with 1 additions and 1 deletions

View File

@ -775,7 +775,7 @@ func resourceAwsDbInstanceUpdate(d *schema.ResourceData, meta interface{}) error
requestUpdate = true requestUpdate = true
} }
if d.HasChange("vpc_security_group_ids") { if d.HasChange("security_group_names") {
if attr := d.Get("security_group_names").(*schema.Set); attr.Len() > 0 { if attr := d.Get("security_group_names").(*schema.Set); attr.Len() > 0 {
var s []*string var s []*string
for _, v := range attr.List() { for _, v := range attr.List() {