provider/aws: fix issue with reading VPC id in AWS Security Group

This commit is contained in:
Clint Shryock 2015-05-06 16:54:43 -05:00
parent acbca8101c
commit 8705f0f78f
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ func resourceAwsSecurityGroupCreate(d *schema.ResourceData, meta interface{}) er
securityGroupOpts := &ec2.CreateSecurityGroupInput{}
if v := d.Get("vpc_id"); v != nil {
if v, ok := d.GetOk("vpc_id"); ok {
securityGroupOpts.VPCID = aws.String(v.(string))
}