Skip to content

Commit

Permalink
feat(terraform): allow block to be marked as expanded (#1528)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikpivkin authored Jan 24, 2024
1 parent c2d65f4 commit 60539be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/terraform/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 60539be

Please sign in to comment.