From 002a05d5273a6ab1a606a00c404cffa973c23f9c Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Mon, 10 Aug 2009 00:42:31 +0100 Subject: [PATCH] Sort the right list Signed-off-by: Stephen Gran --- ud-generate | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ud-generate b/ud-generate index b57b0fd..0b67ff8 100755 --- a/ud-generate +++ b/ud-generate @@ -1067,7 +1067,7 @@ PasswdAttrs = l.search_s(BaseDn, ldap.SCOPE_ONELEVEL, "uid=*",\ if PasswdAttrs is None: raise UDEmptyList, "No Users" -HostAttrs.sort(lambda x, y: cmp((GetAttr(x, "uid")).lower(), (GetAttr(y, "uid")).lower())) +PasswdAttrs.sort(lambda x, y: cmp((GetAttr(x, "uid")).lower(), (GetAttr(y, "uid")).lower())) # Fetch all the hosts HostAttrs = l.search_s(HostBaseDn, ldap.SCOPE_ONELEVEL, "objectClass=debianServer",\ -- 2.20.1