Merge pull request #1412 from hashicorp/b-asg-in-classic

providers/aws: fix LCs being invalid in classic
This commit is contained in:
Paul Hinze 2015-04-07 17:31:08 -05:00
commit a9ea489487
1 changed files with 1 additions and 3 deletions

View File

@ -278,10 +278,8 @@ func resourceAwsLaunchConfigurationCreate(d *schema.ResourceData, meta interface
createLaunchConfigurationOpts.PlacementTenancy = aws.String(v.(string))
}
if v := d.Get("associate_public_ip_address"); v != nil {
if v, ok := d.GetOk("associate_public_ip_address"); ok {
createLaunchConfigurationOpts.AssociatePublicIPAddress = aws.Boolean(v.(bool))
} else {
createLaunchConfigurationOpts.AssociatePublicIPAddress = aws.Boolean(false)
}
if v, ok := d.GetOk("key_name"); ok {