Skip to content

Commit

Permalink
fix(misconf): expand dynamic blocks from top to bottom
Browse files Browse the repository at this point in the history
Signed-off-by: nikpivkin <nikita.pivkin@smartforce.io>
  • Loading branch information
nikpivkin committed Sep 27, 2024
1 parent 9baf658 commit 0631927
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/iac/scanners/terraform/parser/evaluator.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,6 @@ func (e *evaluator) expandDynamicBlocks(blocks ...*terraform.Block) terraform.Bl
}

func (e *evaluator) expandDynamicBlock(b *terraform.Block) {
for _, sub := range b.AllBlocks() {
e.expandDynamicBlock(sub)
}
for _, sub := range b.AllBlocks().OfType("dynamic") {
if sub.IsExpanded() {
continue
Expand Down

0 comments on commit 0631927

Please sign in to comment.