1
1
mirror of https://github.com/mcuadros/ascode synced 2024-11-26 06:01:08 +01:00

terraform/plugins: default version contraint

This commit is contained in:
Máximo Cuadros 2019-07-12 00:20:30 +02:00
parent 4542cf80bd
commit e50b6a21ec

@ -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,