command/graph: use user-supplied plugin path when running graph command (#18083)

This commit is contained in:
Przemysław Dąbek 2019-04-17 19:48:11 +02:00 committed by Kristin Laemmert
parent cbc8d1eba2
commit 9605b093d9
1 changed files with 6 additions and 0 deletions

View File

@ -45,6 +45,12 @@ func (c *GraphCommand) Run(args []string) int {
return 1 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
}
// Check if the path is a plan // Check if the path is a plan
var plan *plans.Plan var plan *plans.Plan
planFile, err := c.PlanFile(configPath) planFile, err := c.PlanFile(configPath)