Skip to content

Commit ffac60b

Browse files
disable generic provider (#338)
1 parent bf45554 commit ffac60b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/provider/provider.go

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"github.com/pluralsh/plural/pkg/config"
1010
"github.com/pluralsh/plural/pkg/manifest"
1111
"github.com/pluralsh/plural/pkg/utils"
12+
"github.com/pluralsh/polly/algorithms"
1213
v1 "k8s.io/api/core/v1"
1314
)
1415

@@ -125,6 +126,7 @@ func getAvailableProviders() error {
125126
if providers.AvailableProviders == nil {
126127
client := api.NewClient()
127128
available, err := client.GetTfProviders()
129+
available = algorithms.Filter(available, func(prov string) bool { return prov != "GENERIC" })
128130
for i := range available {
129131
if available[i] == "GCP" {
130132
available[i] = "google"

0 commit comments

Comments
 (0)