Skip to content

Commit

Permalink
r/eks_addon: Fix nil check
Browse files Browse the repository at this point in the history
  • Loading branch information
YakDriver committed May 20, 2021
1 parent 6dbbe18 commit cdfd2ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws/resource_aws_eks_addon.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ func resourceAwsEksAddonUpdate(ctx context.Context, d *schema.ResourceData, meta

// If service account role ARN is already provided, use it. Otherwise, the add-on uses
// permissions assigned to the node IAM role.
if d.HasChange("service_account_role_arn") || d.Get("service_account_role_arn") != nil {
if d.HasChange("service_account_role_arn") || d.Get("service_account_role_arn").(string) != "" {
input.ServiceAccountRoleArn = aws.String(d.Get("service_account_role_arn").(string))
}

Expand Down

0 comments on commit cdfd2ed

Please sign in to comment.