Skip to content

Commit

Permalink
fix(misconf): do not recreate filesystem map (#7416)
Browse files Browse the repository at this point in the history
Signed-off-by: nikpivkin <[email protected]>
  • Loading branch information
nikpivkin authored Aug 30, 2024
1 parent 39c8024 commit 3a5d091
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/iac/scanners/terraform/parser/evaluator.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,9 @@ func (e *evaluator) evaluateSubmodules(ctx context.Context, fsMap map[string]fs.
var modules terraform.Modules
for _, sm := range submodules {
modules = append(modules, sm.modules...)
fsMap = lo.Assign(fsMap, sm.fsMap)
for k, v := range sm.fsMap {
fsMap[k] = v
}
}

e.logger.Debug("Finished processing submodule(s).", log.Int("count", len(modules)))
Expand Down

0 comments on commit 3a5d091

Please sign in to comment.