Skip to content

Commit

Permalink
change client referencing to resource id on terraform state
Browse files Browse the repository at this point in the history
  • Loading branch information
dcreado committed May 8, 2023
1 parent 2c6eff8 commit 4ca2893
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/provider/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -614,8 +614,7 @@ func clientUpdate(ctx context.Context, d *schema.ResourceData, meta interface{})
if d.HasChange("client_secret") {
if d.Get("client_secret").(string) != "" {
cliSecretUpdateRequest := authlete.ClientSecretUpdateRequest{ClientSecret: d.Get("client_secret").(string)}
updateSecretRequest := client.authleteClient.ClientManagementApi.ClientSecretUpdateApi(auth,
d.Get("client_id").(string))
updateSecretRequest := client.authleteClient.ClientManagementApi.ClientSecretUpdateApi(auth, d.Id())

_, _, err := updateSecretRequest.ClientSecretUpdateRequest(cliSecretUpdateRequest).Execute()

Expand Down

0 comments on commit 4ca2893

Please sign in to comment.