From 60539bece8241ab3854d6e532de83e0291f2f59f Mon Sep 17 00:00:00 2001 From: Nikita Pivkin Date: Thu, 25 Jan 2024 05:59:34 +0700 Subject: [PATCH] feat(terraform): allow block to be marked as expanded (#1528) --- pkg/terraform/block.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/terraform/block.go b/pkg/terraform/block.go index 07a2f7ceb..df175187e 100644 --- a/pkg/terraform/block.go +++ b/pkg/terraform/block.go @@ -146,7 +146,7 @@ func (b *Block) InjectBlock(block *Block, name string) { b.childBlocks = append(b.childBlocks, block) } -func (b *Block) markCountExpanded() { +func (b *Block) MarkCountExpanded() { b.expanded = true } @@ -188,7 +188,7 @@ func (b *Block) Clone(index cty.Value) *Block { } indexVal, _ := gocty.ToCtyValue(index, cty.Number) clone.context.SetByDot(indexVal, "count.index") - clone.markCountExpanded() + clone.MarkCountExpanded() b.cloneIndex++ return clone }