lists.arthurdejong.org
RSS feed

nss-pam-ldapd branch master updated. 0.8.12-91-g1a1bb07

[Date Prev][Date Next] [Thread Prev][Thread Next]

nss-pam-ldapd branch master updated. 0.8.12-91-g1a1bb07



This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "nss-pam-ldapd".

The branch, master has been updated
       via  1a1bb07bfa1c63bb70410b749452581b423e7297 (commit)
      from  38fb524e2eba7b44694b5b24c8d8d9f7f6899396 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://arthurdejong.org/git/nss-pam-ldapd/commit/?id=1a1bb07bfa1c63bb70410b749452581b423e7297

commit 1a1bb07bfa1c63bb70410b749452581b423e7297
Author: Arthur de Jong <arthur@arthurdejong.org>
Date:   Fri Mar 1 16:41:58 2013 +0100

    move parsing to command line arguments to main body

diff --git a/utils/getent.py b/utils/getent.py
index 3279249..07cc670 100755
--- a/utils/getent.py
+++ b/utils/getent.py
@@ -43,10 +43,6 @@ parser.add_argument('key', metavar='KEY', nargs='?',
     help='information to lookup')
 
 
-# parse arguments
-args = parser.parse_args()
-
-
 def getent_aliases(database, key=None):
     if not key:
         con = NslcdClient(constants.NSLCD_ACTION_ALIAS_ALL)
@@ -316,6 +312,7 @@ def getent_shadow(database, key=None):
             )
 
 
+args = parser.parse_args()
 try:
     if args.database == 'aliases':
         getent_aliases(args.database, args.key)

-----------------------------------------------------------------------

Summary of changes:
 utils/getent.py |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
nss-pam-ldapd
-- 
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits/