Skip to content

Commit

Permalink
#874 Change serviceAccountRoleData functions to use role id instead o…
Browse files Browse the repository at this point in the history
…f name
  • Loading branch information
martinmeneval authored Oct 2, 2023
1 parent bfee4d7 commit 1744dac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func setOpenidClientServiceAccountRealmRoleData(data *schema.ResourceData, servi
data.SetId(fmt.Sprintf("%s/%s", serviceAccountRole.ServiceAccountUserId, serviceAccountRole.Id))
data.Set("realm_id", serviceAccountRole.RealmId)
data.Set("service_account_user_id", serviceAccountRole.ServiceAccountUserId)
data.Set("role", serviceAccountRole.Name)
data.Set("role", serviceAccountRole.Id)
}

func resourceKeycloakOpenidClientServiceAccountRealmRoleCreate(ctx context.Context, data *schema.ResourceData, meta interface{}) diag.Diagnostics {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func setOpenidClientServiceAccountRoleData(data *schema.ResourceData, serviceAcc
data.Set("realm_id", serviceAccountRole.RealmId)
data.Set("client_id", serviceAccountRole.ContainerId)
data.Set("service_account_user_id", serviceAccountRole.ServiceAccountUserId)
data.Set("role", serviceAccountRole.Name)
data.Set("role", serviceAccountRole.Id)
}

func resourceKeycloakOpenidClientServiceAccountRoleCreate(ctx context.Context, data *schema.ResourceData, meta interface{}) diag.Diagnostics {
Expand Down

0 comments on commit 1744dac

Please sign in to comment.