as per advice from stack72 to stick to strings

This commit is contained in:
Sunil K Chopra 2015-11-02 09:33:35 -06:00
parent 0d2007e8bd
commit 68c7baa20e
1 changed files with 2 additions and 3 deletions

View File

@ -180,9 +180,8 @@ func resourceAwsAutoscalingGroupCreate(d *schema.ResourceData, meta interface{})
autoScalingGroupOpts.HealthCheckGracePeriod = aws.Int64(int64(v.(int)))
}
if v, ok := d.GetOk("placement_group"); ok && v.(*schema.Set).Len() > 0 {
autoScalingGroupOpts.PlacementGroup = expandStringList(
v.(*schema.Set).List())
if v, ok := d.GetOk("placement_group"); ok {
autoScalingGroupOpts.PlacementGroup = aws.String(v.(string))
}
if v, ok := d.GetOk("load_balancers"); ok && v.(*schema.Set).Len() > 0 {