Skip to content

Commit

Permalink
disable generic provider (#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljguarino authored Feb 14, 2023
1 parent bf45554 commit ffac60b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"github.com/pluralsh/plural/pkg/config"
"github.com/pluralsh/plural/pkg/manifest"
"github.com/pluralsh/plural/pkg/utils"
"github.com/pluralsh/polly/algorithms"
v1 "k8s.io/api/core/v1"
)

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

0 comments on commit ffac60b

Please sign in to comment.