Merge pull request #1837 from hashicorp/b-fix-aws-sg-vpcid

provider/aws: fix issue with reading VPC id in AWS Security Group
This commit is contained in:
Clint 2015-05-06 17:01:20 -05:00
commit c44ba73a2a
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{} 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)) securityGroupOpts.VPCID = aws.String(v.(string))
} }