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 Apr 21, 2023
1 parent bbeae66 commit 00c0fd1
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 00c0fd1

Please sign in to comment.