diff --git a/provider/resource_keycloak_openid_client.go b/provider/resource_keycloak_openid_client.go index 06a9be69c..1ee8dabe1 100644 --- a/provider/resource_keycloak_openid_client.go +++ b/provider/resource_keycloak_openid_client.go @@ -4,7 +4,6 @@ import ( "context" "errors" "fmt" - "github.com/imdario/mergo" "github.com/mrparkers/terraform-provider-keycloak/keycloak/types" "reflect" "strings" @@ -528,15 +527,6 @@ func resourceKeycloakOpenidClientCreate(ctx context.Context, data *schema.Resour } if data.Get("import").(bool) { - existingClient, err := keycloakClient.GetOpenidClientByClientId(ctx, client.RealmId, client.ClientId) - if err != nil { - return diag.FromErr(err) - } - - if err = mergo.Merge(client, existingClient); err != nil { - return diag.FromErr(err) - } - err = keycloakClient.UpdateOpenidClient(ctx, client) if err != nil { return diag.FromErr(err)