Skip to content

Commit

Permalink
command/0.12upgrade: honor user-supplied plugin-dir
Browse files Browse the repository at this point in the history
Fixes #21594
  • Loading branch information
hiroqn authored and mildwonkey committed Aug 2, 2019
1 parent 4c63187 commit de42356
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions command/012_config_upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ func (c *ZeroTwelveUpgradeCommand) Run(args []string) int {
return 1
}

// Check for user-supplied plugin path
if c.pluginPath, err = c.loadPluginPath(); err != nil {
c.Ui.Error(fmt.Sprintf("Error loading plugin path: %s", err))
return 1
}

dir = c.normalizePath(dir)

sources, err := configupgrade.LoadModule(dir)
Expand Down

0 comments on commit de42356

Please sign in to comment.