From e681907c5055f46aa7c4882d48ac6961036aa93b Mon Sep 17 00:00:00 2001 From: Techcadia Date: Fri, 8 Dec 2017 13:12:23 -0800 Subject: [PATCH] [Add] Pathing and Override Output to DEBUG Command --- command/plugins.go | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/command/plugins.go b/command/plugins.go index 5eba6b698..be9cd1794 100644 --- a/command/plugins.go +++ b/command/plugins.go @@ -209,13 +209,16 @@ func (m *Meta) providerPluginSet() discovery.PluginMetaSet { // Add providers defined in the legacy .terraformrc, if m.PluginOverrides != nil { + for k, v := range m.PluginOverrides.Providers { + log.Printf("[DEBUG] found plugin override in .terraformrc: %q, %q", k, v) + } plugins = plugins.OverridePaths(m.PluginOverrides.Providers) } plugins, _ = plugins.ValidateVersions() for p := range plugins { - log.Printf("[DEBUG] found valid plugin: %q", p.Name) + log.Printf("[DEBUG] found valid plugin: %q, %q, %q", p.Name, p.Version, p.Path) } return plugins @@ -241,13 +244,17 @@ func (m *Meta) providerPluginManuallyInstalledSet() discovery.PluginMetaSet { // Add providers defined in the legacy .terraformrc, if m.PluginOverrides != nil { + for k, v := range m.PluginOverrides.Providers { + log.Printf("[DEBUG] found plugin override in .terraformrc: %q, %q", k, v) + } + plugins = plugins.OverridePaths(m.PluginOverrides.Providers) } plugins, _ = plugins.ValidateVersions() for p := range plugins { - log.Printf("[DEBUG] found valid plugin: %q", p.Name) + log.Printf("[DEBUG] found valid plugin: %q, %q, %q", p.Name, p.Version, p.Path) } return plugins