From 9605b093d951d1edbebf2578d3308ac50be816df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20D=C4=85bek?= Date: Wed, 17 Apr 2019 19:48:11 +0200 Subject: [PATCH] command/graph: use user-supplied plugin path when running graph command (#18083) --- command/graph.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/command/graph.go b/command/graph.go index b6f0514047..f047e14d14 100644 --- a/command/graph.go +++ b/command/graph.go @@ -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)