command/graph: use user-supplied plugin path when running graph command (#18083)
This commit is contained in:
parent
cbc8d1eba2
commit
9605b093d9
|
@ -45,6 +45,12 @@ func (c *GraphCommand) 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
|
||||
}
|
||||
|
||||
// Check if the path is a plan
|
||||
var plan *plans.Plan
|
||||
planFile, err := c.PlanFile(configPath)
|
||||
|
|
Loading…
Reference in New Issue