command: Make input variable values available to "terraform console"
This fixes TestConsole_tfvars.
This commit is contained in:
parent
741d334ee4
commit
74582447bb
|
@ -74,6 +74,15 @@ func (c *ConsoleCommand) Run(args []string) int {
|
|||
c.showDiagnostics(diags)
|
||||
return 1
|
||||
}
|
||||
{
|
||||
var moreDiags tfdiags.Diagnostics
|
||||
opReq.Variables, moreDiags = c.collectVariableValues()
|
||||
diags = diags.Append(moreDiags)
|
||||
if moreDiags.HasErrors() {
|
||||
c.showDiagnostics(diags)
|
||||
return 1
|
||||
}
|
||||
}
|
||||
|
||||
// Get the context
|
||||
ctx, _, ctxDiags := local.Context(opReq)
|
||||
|
|
Loading…
Reference in New Issue