providers/aws: fix bad arg giving wrong type [GH-992]
This commit is contained in:
parent
e04def93e6
commit
c40238041c
|
@ -338,13 +338,13 @@ func resourceAwsSecurityGroupUpdate(d *schema.ResourceData, meta interface{}) er
|
|||
}
|
||||
group := sgRaw.(*ec2.SecurityGroupInfo).SecurityGroup
|
||||
|
||||
err = resourceAwsSecurityGroupUpdateRules(d, "ingress", ec2conn, group)
|
||||
err = resourceAwsSecurityGroupUpdateRules(d, "ingress", meta, group)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if d.Get("vpc_id") != nil {
|
||||
err = resourceAwsSecurityGroupUpdateRules(d, "egress", ec2conn, group)
|
||||
err = resourceAwsSecurityGroupUpdateRules(d, "egress", meta, group)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue