Skip to content

Commit

Permalink
allow computation of extra_config for data sources
Browse files Browse the repository at this point in the history
  • Loading branch information
kherock committed Oct 12, 2023
1 parent 254d02b commit aacf3d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion provider/data_source_keycloak_openid_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,10 @@ func dataSourceKeycloakOpenidClientRead(ctx context.Context, data *schema.Resour
}

err = setOpenidClientData(ctx, keycloakClient, data, client)
if err != nil {
return diag.FromErr(err)
}
data.Set("extra_config", client.Attributes.ExtraConfig)

return diag.FromErr(err)
return nil
}
1 change: 1 addition & 0 deletions provider/data_source_keycloak_saml_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ func dataSourceKeycloakSamlClientRead(ctx context.Context, data *schema.Resource
if err != nil {
return diag.FromErr(err)
}
data.Set("extra_config", client.Attributes.ExtraConfig)

return nil
}

0 comments on commit aacf3d2

Please sign in to comment.