[sysadmin-bin] Print the userids that are going to be added on the mailusers/foundation groups



commit 187eca59903500570754784b98cffc2fd6f1c2f2
Author: Andrea Veri <av gnome org>
Date:   Sat May 17 17:38:06 2014 +0200

    Print the userids that are going to be added on the mailusers/foundation groups

 membership/foundation-db-operations.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/membership/foundation-db-operations.py b/membership/foundation-db-operations.py
index 64ad1b9..ddbfa9a 100755
--- a/membership/foundation-db-operations.py
+++ b/membership/foundation-db-operations.py
@@ -209,8 +209,10 @@ def sync_foundation_db_with_ldap():
     for row in foundationmembers:
         if row[0] is not None and row[0] != '':
             if row[0] not in mailusers:
+                print 'Adding %s into the mailusers LDAP group' % (str(row[0]))
                 (sync_user_to_ldap_mailusers(str(row[0])))
             if row[0] not in foundation:
+                print 'Adding %s into the foundation LDAP group' % (str(row[0]))
                 (sync_user_to_ldap_foundation(str(row[0])))
 
     if row[0] is not None and row[0] != '':


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]