Skip to content

Commit

Permalink
Merge pull request #13340 from terraform-providers/ap_typelist_eks
Browse files Browse the repository at this point in the history
service/eks: update to using typelist
  • Loading branch information
anGie44 authored May 20, 2020
2 parents a4dda04 + 7d519e2 commit 9d4d089
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions aws/resource_aws_eks_node_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func resourceAwsEksNodeGroup() *schema.Resource {
ForceNew: true,
},
"instance_types": {
Type: schema.TypeSet,
Type: schema.TypeList,
Optional: true,
Computed: true,
ForceNew: true,
Expand Down Expand Up @@ -201,8 +201,8 @@ func resourceAwsEksNodeGroupCreate(d *schema.ResourceData, meta interface{}) err
input.DiskSize = aws.Int64(int64(v.(int)))
}

if v := d.Get("instance_types").(*schema.Set); v.Len() > 0 {
input.InstanceTypes = expandStringSet(v)
if v := d.Get("instance_types").([]interface{}); len(v) > 0 {
input.InstanceTypes = expandStringList(v)
}

if v := d.Get("labels").(map[string]interface{}); len(v) > 0 {
Expand Down

0 comments on commit 9d4d089

Please sign in to comment.