mirror of
https://github.com/mcuadros/ascode
synced 2024-11-26 14:03:49 +01:00
terraform/plugins: default version contraint
This commit is contained in:
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) {
|
func (m *PluginManager) getRemote(provider, v string) (discovery.PluginMeta, bool) {
|
||||||
|
if v == "" {
|
||||||
|
v = defaultVersionContraint
|
||||||
|
}
|
||||||
|
|
||||||
installer := &discovery.ProviderInstaller{
|
installer := &discovery.ProviderInstaller{
|
||||||
Dir: m.Path,
|
Dir: m.Path,
|
||||||
PluginProtocolVersion: discovery.PluginInstallProtocolVersion,
|
PluginProtocolVersion: discovery.PluginInstallProtocolVersion,
|
||||||
|
Loading…
Reference in New Issue
Block a user