command/validate: Load plugins from plugin_path file

This was added to other commands in 0.10 but was missed on "validate".
This commit is contained in:
Patrick Van Stee 2017-10-20 18:42:51 -04:00 committed by Martin Atkins
parent 013df9350b
commit a4a53f6f99
1 changed files with 6 additions and 0 deletions

View File

@ -46,6 +46,12 @@ func (c *ValidateCommand) Run(args []string) int {
"Unable to locate directory %v\n", err.Error()))
}
// 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
}
rtnCode := c.validate(dir, checkVars)
return rtnCode