Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(misconf): properly expand dynamic blocks #7612

Merged
merged 5 commits into from
Oct 19, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add a sad path test case
  • Loading branch information
simar7 committed Oct 17, 2024
commit 2becf4c67ee22a94ebd58a6c5c05db34de16caf9
11 changes: 11 additions & 0 deletions pkg/iac/scanners/terraform/parser/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1575,6 +1575,17 @@ resource "test_resource" "test" {
bar = foo.value
}
}
}`,
expected: []any{},
},
{
name: "no for-each attribute",
src: `resource "test_resource" "test" {
dynamic "foo" {
content {
bar = foo.value
}
}
}`,
expected: []any{},
},
simar7 marked this conversation as resolved.
Show resolved Hide resolved
Expand Down