Skip to content

Commit

Permalink
fix: support refreshing generic role mapper when realm is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
kherock committed May 9, 2023
1 parent e5d8503 commit baae0c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion provider/resource_keycloak_generic_role_mapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func resourceKeycloakGenericRoleMapperRead(ctx context.Context, data *schema.Res

role, err := keycloakClient.GetRole(ctx, realmId, roleId)
if err != nil {
return diag.FromErr(err)
return handleNotFoundError(ctx, err, data)
}

mappedRole, err := keycloakClient.GetRoleScopeMapping(ctx, realmId, clientId, clientScopeId, role)
Expand Down

0 comments on commit baae0c3

Please sign in to comment.