Skip to content

Commit

Permalink
provider settings are only passed via ENV
Browse files Browse the repository at this point in the history
  • Loading branch information
StarpTech committed Nov 3, 2019
1 parent d512856 commit 50fd34e
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions providers/commercetools/commercetools_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import (
"github.com/GoogleCloudPlatform/terraformer/terraform_utils"
"github.com/GoogleCloudPlatform/terraformer/terraform_utils/provider_wrapper"
"github.com/pkg/errors"
"github.com/zclconf/go-cty/cty"
)

type CommercetoolsProvider struct {
Expand All @@ -45,17 +44,6 @@ func (p CommercetoolsProvider) GetProviderData(arg ...string) map[string]interfa
}
}

func (p *CommercetoolsProvider) GetConfig() cty.Value {
return cty.ObjectVal(map[string]cty.Value{
"client_id": cty.StringVal(p.clientID),
"client_secret": cty.StringVal(p.clientSecret),
"project_key": cty.StringVal(p.projectKey),
"scopes": cty.StringVal(p.clientScope),
"token_url": cty.StringVal(p.tokenURL),
"api_url": cty.StringVal(p.baseURL),
})
}

// Init CommerectoolsProvider
func (p *CommercetoolsProvider) Init(args []string) error {
p.clientID = args[0]
Expand Down

0 comments on commit 50fd34e

Please sign in to comment.