From 873c2430ce4f7f88b51b174b61e317a6f391205e Mon Sep 17 00:00:00 2001 From: Trois-Six Date: Mon, 14 Oct 2019 23:33:30 +0200 Subject: [PATCH] feat: add serviceAccountUserId even if service accounts are disabled (#162) --- provider/resource_keycloak_openid_client.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/provider/resource_keycloak_openid_client.go b/provider/resource_keycloak_openid_client.go index 4d07112cb..60d543f17 100644 --- a/provider/resource_keycloak_openid_client.go +++ b/provider/resource_keycloak_openid_client.go @@ -222,6 +222,8 @@ func setOpenidClientData(keycloakClient *keycloak.KeycloakClient, data *schema.R if client.ServiceAccountsEnabled { data.Set("service_account_user_id", serviceAccountUserId) + } else { + data.Set("service_account_user_id", "") } // access type