Skip to content

Commit

Permalink
feat(terraform): allow block to be marked as expanded
Browse files Browse the repository at this point in the history
  • Loading branch information
nikpivkin committed Jan 24, 2024
1 parent c2d65f4 commit 1ac1c9f
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 1ac1c9f

Please sign in to comment.