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.
This commit is contained in:
Kristin Laemmert 2020-12-11 13:22:06 -05:00 committed by GitHub
parent e938b02337
commit 8a4891383c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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 {