Skip to content

Commit

Permalink
Fix provider decode
Browse files Browse the repository at this point in the history
  • Loading branch information
ffrizzo authored and jgramoll committed Nov 30, 2020
1 parent c005f15 commit cffd39e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func Provider() terraform.ResourceProvider {
func providerConfigure(d *schema.ResourceData) (interface{}, error) {
config := newProviderConfig()
configRaw := d.Get("").(map[string]interface{})
if err := mapstructure.Decode(configRaw, &config); err != nil {
if err := mapstructure.WeakDecode(configRaw, &config); err != nil {
return nil, err
}

Expand Down

0 comments on commit cffd39e

Please sign in to comment.