Skip to content

Commit

Permalink
Make endpoint_parms actually optional
Browse files Browse the repository at this point in the history
  • Loading branch information
runecalico committed Apr 6, 2022
1 parent 2af9c34 commit 5794ef2
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 @@ -250,8 +250,8 @@ func configureProvider(d *schema.ResourceData) (interface{}, error) {
opt.oauthTokenURL = oauthConfig["oauth_token_endpoint"].(string)
opt.oauthScopes = expandStringSet(oauthConfig["oauth_scopes"].([]interface{}))

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

0 comments on commit 5794ef2

Please sign in to comment.