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:
parent
e938b02337
commit
8a4891383c
|
@ -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…
Reference in New Issue