Module: check_mk
Branch: master
Commit: ad5bc4948c41d3e27853ee8d99a70322db1b0c3a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ad5bc4948c41d3…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Dec 22 10:07:34 2015 +0100
Fix exception with site_is_local when using LDAP connector
---
web/plugins/userdb/ldap.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/plugins/userdb/ldap.py b/web/plugins/userdb/ldap.py
index f596c27..f2ce5a0 100644
--- a/web/plugins/userdb/ldap.py
+++ b/web/plugins/userdb/ldap.py
@@ -1758,7 +1758,7 @@ def synchronize_profile_to_sites(connection, user_id, profile):
import wato # FIXME: Cleanup!
sites = [(site_id, config.site(site_id))
for site_id in config.sitenames()
- if not wato.site_is_local(site_id) ]
+ if not config.site_is_local(site_id) ]
connection.log('Credentials changed: %s. Trying to sync to %d sites' %
(user_id, len(sites)))