console: normalize module path before building context (#27263)

Expressions such as "path.root" were returning the cwd (or modulePath),
instead of the usual _relative_ path. This commit normalizes the path
before building the context.
pull/27268/head
Kristin Laemmert 5 years ago committed by GitHub
parent e938b02337
commit 8a4891383c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -35,6 +35,7 @@ func (c *ConsoleCommand) Run(args []string) int {
c.Ui.Error(err.Error())
return 1
}
configPath = c.Meta.normalizePath(configPath)
// Check for user-supplied plugin path
if c.pluginPath, err = c.loadPluginPath(); err != nil {

Loading…
Cancel
Save