summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVishvananda Ishaya <vishvananda@gmail.com>2010-07-12 15:11:41 -0500
committerVishvananda Ishaya <vishvananda@gmail.com>2010-07-12 15:11:41 -0500
commit732707903f65fc126c147fc0a0839a3639b8d976 (patch)
treeef1583dd8b4b663262f2148275500c228ff4eb4a
parentddc4a0970d9e98a45b820ed740f3ed8e696a4972 (diff)
fixed bug in auth group_exists
it was using the name instead of the dn
-rw-r--r--nova/auth/users.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/auth/users.py b/nova/auth/users.py
index 671fdbdbf..769983e83 100644
--- a/nova/auth/users.py
+++ b/nova/auth/users.py
@@ -710,7 +710,7 @@ class LDAPWrapper(object):
def __create_group(self, group_dn, name, uid,
description, member_uids = None):
- if self.group_exists(name):
+ if self.group_exists(group_dn):
raise exception.Duplicate("Group can't be created because "
"group %s already exists" % name)
members = []