[sysadmin-bin] Replace some tabs with spaces to have sane indenting
- From: Patrick Uiterwijk <puiterwijk src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] Replace some tabs with spaces to have sane indenting
- Date: Fri, 28 Aug 2015 14:34:27 +0000 (UTC)
commit b334765020e6e14628ba10f30ccd3956afc36119
Author: Patrick Uiterwijk <puiterwijk redhat com>
Date: Fri Aug 28 16:03:23 2015 +0200
Replace some tabs with spaces to have sane indenting
cleanup-inactive-ldap-accounts.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/cleanup-inactive-ldap-accounts.py b/cleanup-inactive-ldap-accounts.py
index 1b11945..6ccde4d 100755
--- a/cleanup-inactive-ldap-accounts.py
+++ b/cleanup-inactive-ldap-accounts.py
@@ -47,7 +47,7 @@ now = time.time()
for user, last_pushed in last_pushed_times.iteritems():
if last_pushed < now - 2 * 365 * 24 * 60 * 60:
last_pushed = time.gmtime(last_pushed)
- if options.print_inactive_accounts:
+ if options.print_inactive_accounts:
print ("%s: %s" % (user, time.strftime("%d-%m-%Y", last_pushed)), end='\n')
@@ -99,14 +99,14 @@ ftpadmin_users = (get_uids_from_group('ftpadmin'))
for gnomecvs_user in gnomecvs_users:
if not user_is_current(gnomecvs_user):
- if options.verbose:
- print ("Removing user %s from gnomecvs" % gnomecvs_user, end='\n')
+ if options.verbose:
+ print ("Removing user %s from gnomecvs" % gnomecvs_user, end='\n')
remove_members = [ (ldap.MOD_DELETE, 'member','uid=%s,cn=users,cn=accounts,dc=gnome,dc=org' %
gnomecvs_user) ]
l.modify_s('cn=gnomecvs,cn=groups,cn=accounts,dc=gnome,dc=org', remove_members)
for ftpadmin_user in ftpadmin_users:
if not user_is_current(ftpadmin_user):
if options.verbose:
- print ("Removing user %s from ftpadmin" % ftpadmin_user, end='\n')
+ print ("Removing user %s from ftpadmin" % ftpadmin_user, end='\n')
remove_members = [ (ldap.MOD_DELETE, 'member','uid=%s,cn=users,cn=accounts,dc=gnome,dc=org' %
ftpadmin_user) ]
l.modify_s('cn=ftpadmin,cn=groups,cn=accounts,dc=gnome,dc=org', remove_members)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]