Skip to content

Commit

Permalink
loop
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeyheath committed Apr 25, 2024
1 parent 2dfe715 commit 13e2c7a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions apply/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -587,12 +587,11 @@ func gatherTFModuleVariablesAndValues(component plan.Component, moduleConfig *tf
}

// filter out non-existent variables on the module
ss := sets.NewStringSet()
for _, v := range moduleConfig.Variables {
ss.Add(v.Name)
}
for k := range variables {
ss := sets.NewStringSet()
for _, v := range moduleConfig.Variables {
ss.Add(v.Name)
}

if !ss.ContainsElement(k) {
delete(variables, k)
}
Expand Down

0 comments on commit 13e2c7a

Please sign in to comment.