Module: check_mk
Branch: master
Commit: f610e2a47de63e595e41369d61fd73d9d84b4168
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f610e2a47de63e…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Dec 6 17:16:24 2016 +0100
Fixed list in function declaration
---
web/plugins/userdb/ldap.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/web/plugins/userdb/ldap.py b/web/plugins/userdb/ldap.py
index e2caf30..0a48111 100644
--- a/web/plugins/userdb/ldap.py
+++ b/web/plugins/userdb/ldap.py
@@ -443,7 +443,10 @@ class LDAPUserConnector(UserConnector):
return results
- def ldap_search(self, base, filt='(objectclass=*)', columns=[],
scope='sub'):
+ def ldap_search(self, base, filt='(objectclass=*)', columns=None,
scope='sub'):
+ if columns == None:
+ columns = []
+
self.log('LDAP_SEARCH "%s" "%s" "%s"
"%r"' % (base, scope, filt, columns))
start_time = time.time()