aboutsummaryrefslogtreecommitdiffstats
path: root/arthur/exts/directory/ldap.py
diff options
context:
space:
mode:
Diffstat (limited to 'arthur/exts/directory/ldap.py')
-rw-r--r--arthur/exts/directory/ldap.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/arthur/exts/directory/ldap.py b/arthur/exts/directory/ldap.py
index 1968ba9..ed5ae6e 100644
--- a/arthur/exts/directory/ldap.py
+++ b/arthur/exts/directory/ldap.py
@@ -433,13 +433,15 @@ async def setup(bot: KingArthur) -> None:
"or LDAP is disabled by config, see README.md for more."
)
return
- if not all((
- CONFIG.ldap_host,
- CONFIG.ldap_bind_password,
- CONFIG.ldap_certificate_location,
- CONFIG.keycloak_address,
- CONFIG.keycloak_password,
- )):
+ if not all(
+ (
+ CONFIG.ldap_host,
+ CONFIG.ldap_bind_password,
+ CONFIG.ldap_certificate_location,
+ CONFIG.keycloak_address,
+ CONFIG.keycloak_password,
+ )
+ ):
logger.warning(
"Not loading LDAP sync utilities as one or more LDAP environment variables"
"are not set, see README.md for more."