Skip to content

Commit 61d1d0e

Browse files
author
Liam Cervante
committed
update comment
1 parent 9d6a0d7 commit 61d1d0e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

internal/moduletest/graph/variables.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,10 @@ func (n *NodeTestRun) GetVariables(ctx *EvalContext, includeWarnings bool) (terr
150150
}
151151
}
152152

153-
// Finally, we're going to give these variables a value. They'll be
154-
// processed by the Terraform graph and provided a default value later
155-
// if they have one.
153+
// If all else fails, these variables may have default values set within
154+
// the to-be-executed Terraform config. We'll put in placeholder values
155+
// if that is the case, otherwise add a diagnostic early to avoid
156+
// executing something we know will fail.
156157

157158
if variable.Required() {
158159
diags = diags.Append(&hcl.Diagnostic{

0 commit comments

Comments
 (0)