From 62d8b6f5b6017a2bec52a2fd2b803a9cacf53756 Mon Sep 17 00:00:00 2001 From: James Robinson Date: Wed, 23 Oct 2024 14:00:17 +0100 Subject: [PATCH] :rotating_light: Fix linting issues --- apricot/oauth/keycloak_client.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apricot/oauth/keycloak_client.py b/apricot/oauth/keycloak_client.py index ed94923..54ddaaa 100644 --- a/apricot/oauth/keycloak_client.py +++ b/apricot/oauth/keycloak_client.py @@ -156,7 +156,10 @@ def users(self: Self) -> list[JSONDict]: attributes["cn"] = username attributes["description"] = "" attributes["displayName"] = full_name - attributes["domain"] = user_dict["attributes"].get(self.domain_attribute, [None])[0] + attributes["domain"] = user_dict["attributes"].get( + self.domain_attribute, + [None], + )[0] attributes["gidNumber"] = user_dict["attributes"]["uid"][0] attributes["givenName"] = first_name or "" attributes["homeDirectory"] = f"/home/{username}" if username else None