diff --git a/terraform/plugins.go b/terraform/plugins.go index e78d6b8..7b5c112 100644 --- a/terraform/plugins.go +++ b/terraform/plugins.go @@ -42,7 +42,13 @@ func client(m discovery.PluginMeta) *plugin.Client { }) } +const defaultVersionContraint = "> 0" + func (m *PluginManager) getRemote(provider, v string) (discovery.PluginMeta, bool) { + if v == "" { + v = defaultVersionContraint + } + installer := &discovery.ProviderInstaller{ Dir: m.Path, PluginProtocolVersion: discovery.PluginInstallProtocolVersion,