aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilo Casagrande <milo@ubuntu.com>2013-05-07 17:07:01 +0200
committerMilo Casagrande <milo@ubuntu.com>2013-05-07 17:07:01 +0200
commit84415e75495004e8bd1c9f73f9946f6709bdaa32 (patch)
tree2e61234fd1c31c9320b3993f6bf505c5bc445df7
parent273663aac566a4770f65735c5641e16cae575cb0 (diff)
Fixed if test.
-rwxr-xr-xscripts/ldap-sync2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/ldap-sync b/scripts/ldap-sync
index 26b7718..04631bf 100755
--- a/scripts/ldap-sync
+++ b/scripts/ldap-sync
@@ -440,7 +440,7 @@ class LdapSync():
def _add_users_groups(self, username, group):
"""Internally used to store all user names and groups."""
all_usernames.append(username)
- if all_groups.get(group, None):
+ if all_groups.get(group) is not None:
all_groups[group].append(username)
else:
all_groups[group] = [username]