command: Make input variable values available to "terraform console"

This fixes TestConsole_tfvars.
pull/19086/head
Martin Atkins 8 years ago
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…
Cancel
Save