[sysadmin-bin] Make sure the due_expiration option prints an error in case it is called alone



commit 1b3ea489c069d6373a0f42b233f57082ed3fe483
Author: Andrea Veri <av gnome org>
Date:   Sat May 3 20:15:44 2014 +0200

    Make sure the due_expiration option prints an error in case it is called alone

 membership/foundation-db-operations.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/membership/foundation-db-operations.py b/membership/foundation-db-operations.py
index 917ffc1..df38a47 100755
--- a/membership/foundation-db-operations.py
+++ b/membership/foundation-db-operations.py
@@ -111,7 +111,7 @@ def main():
     if options.print_current_members:
         print_current_members()
 
-    if options.due_expiration:
+    if options.due_expiration and not (options.three_months or options.six_months):
         print "Error: the --due-expiration flag requires either the --three-months or the --six-months 
options"
     elif options.due_expiration and options.three_months or options.six_months:
         print_due_expiration()


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