Skip to content

Commit

Permalink
CE: no infinite calls
Browse files Browse the repository at this point in the history
  • Loading branch information
porqueoutai committed Jun 30, 2023
1 parent 80648a6 commit 5f33f02
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/service/ce/cost_category.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,9 @@ func schemaCostCategoryRule() *schema.Resource {
}

func schemaCostCategoryRuleLevel(level int) *schema.Resource {
var elem interface{} = schemaCostCategoryRuleLevel(level + 1)
if level == costCategoryRuleMaxNesting {
elem = schemaCostCategoryRuleExpression()
var elem interface{} = schemaCostCategoryRuleExpression()
if level < costCategoryRuleMaxNesting {
elem = schemaCostCategoryRuleLevel(level + 1)
}
return &schema.Resource{
Schema: map[string]*schema.Schema{
Expand Down

0 comments on commit 5f33f02

Please sign in to comment.