Skip to content

Commit

Permalink
fix: depends_on ignored for modules
Browse files Browse the repository at this point in the history
  • Loading branch information
srevinsaju committed Nov 17, 2023
1 parent ee974d7 commit b9d9b0a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion internal/ci/module_hcl.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,10 @@ package ci
import "github.com/hashicorp/hcl/v2"

func (m *Module) Variables() []hcl.Traversal {
return m.Source.Variables()
var vars []hcl.Traversal
vars = append(vars, m.Source.Variables()...)
vars = append(vars, m.DependsOn.Variables()...)
vars = append(vars, m.Condition.Variables()...)
vars = append(vars, m.ForEach.Variables()...)
return vars
}

0 comments on commit b9d9b0a

Please sign in to comment.