From 89e0f4e8cf75a32b53dc90a5154106e387c68fcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sven=20M=C3=A4der?= <maeder@phys.ethz.ch> Date: Thu, 5 Apr 2018 12:06:10 +0200 Subject: [PATCH] Sort printed users and groups --- bin/showgroup.py | 2 +- bin/showuser.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/showgroup.py b/bin/showgroup.py index 55edd9b..eff10ad 100755 --- a/bin/showgroup.py +++ b/bin/showgroup.py @@ -63,7 +63,7 @@ def main(): users = dphysldap.Users(ldap, attrs) users.search(';'.join(members)) - #users.sort('uid') + users.sort('uid') print(users) diff --git a/bin/showuser.py b/bin/showuser.py index 94c9379..e3151c3 100755 --- a/bin/showuser.py +++ b/bin/showuser.py @@ -32,7 +32,7 @@ def main(): users = dphysldap.Users(ldap, attrs) users.search(args['user']) - #users.sort('uid') + users.sort('uid') if not users: sys.exit('No users found.') -- GitLab