Skip to content

Commit

Permalink
Fix data type for deserializing endpoint_params
Browse files Browse the repository at this point in the history
  • Loading branch information
DRuggeri committed Apr 7, 2022
1 parent 6bb8d73 commit 6a66b4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions restapi/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,10 @@ func configureProvider(d *schema.ResourceData) (interface{}, error) {
opt.oauthScopes = expandStringSet(oauthConfig["oauth_scopes"].([]interface{}))

if tmp, ok := oauthConfig["endpoint_params"]; ok {
m := tmp.(map[string][]string)
m := tmp.(map[string]interface{})
setVals := url.Values{}
for k, vals := range m {
for _, val := range vals {
for _, val := range vals.([]string) {
setVals.Add(k, val)
}
}
Expand Down

0 comments on commit 6a66b4f

Please sign in to comment.