From 8a4891383c27922056a6e2a0d95ce845fcdb5f94 Mon Sep 17 00:00:00 2001 From: Kristin Laemmert Date: Fri, 11 Dec 2020 13:22:06 -0500 Subject: [PATCH] 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. --- command/console.go | 1 + 1 file changed, 1 insertion(+) diff --git a/command/console.go b/command/console.go index c32007323..09be505f6 100644 --- a/command/console.go +++ b/command/console.go @@ -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 {