diff options
author | Martin Schwenke <martin@meltin.net> | 2010-08-03 11:41:50 +1000 |
---|---|---|
committer | Martin Schwenke <martin@meltin.net> | 2010-08-03 11:41:50 +1000 |
commit | 4ffb6495ff08e28a7a60bc3acf8e93b814665b6c (patch) | |
tree | 47f060cbdd34f67e391efc5ae138adfbbfa95059 /ctdb/tests | |
parent | 4728bf6ece2f7f8496ee8dbdaaf6e16f57d476e7 (diff) | |
download | samba-4ffb6495ff08e28a7a60bc3acf8e93b814665b6c.tar.gz samba-4ffb6495ff08e28a7a60bc3acf8e93b814665b6c.tar.xz samba-4ffb6495ff08e28a7a60bc3acf8e93b814665b6c.zip |
Testing: IP allocation simulation - clean up usage message.
Group options better and make the language consistent between options.
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit bc38c17e4115fae00c89d00537fdcfe621111b37)
Diffstat (limited to 'ctdb/tests')
-rwxr-xr-x | ctdb/tests/takeover/ctdb_takeover.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/ctdb/tests/takeover/ctdb_takeover.py b/ctdb/tests/takeover/ctdb_takeover.py index f9c1e2df77..f7b0175e8e 100755 --- a/ctdb/tests/takeover/ctdb_takeover.py +++ b/ctdb/tests/takeover/ctdb_takeover.py @@ -44,15 +44,18 @@ def process_args(extra_options=[]): parser.add_option("--ni", action="store_true", dest="no_ip_failback", default=False, help="turn on no_ip_failback") - parser.add_option("-v", "--verbose", - action="store_true", dest="verbose", default=False, - help="print information and actions taken to stdout") + parser.add_option("-b", "--balance", + action="store_true", dest="balance", default=False, + help="show (im)balance information after each event") parser.add_option("-d", "--diff", action="store_true", dest="diff", default=False, - help="after each recovery show IP address movements") + help="show IP address movements for each event") parser.add_option("-n", "--no-print", action="store_false", dest="show", default=True, - help="after each recovery don't print IP address layout") + help="don't show IP address layout after each event") + parser.add_option("-v", "--verbose", + action="store_true", dest="verbose", default=False, + help="print information and actions taken to stdout") parser.add_option("--hack", action="store", type="int", dest="hack", default=0, help="apply a hack (see the code!!!)") @@ -70,9 +73,6 @@ def process_args(extra_options=[]): action="callback", type="int", callback=seed_callback, help="initial random number seed for random events") - parser.add_option("-b", "--balance", - action="store_true", dest="balance", default=False, - help="show (im)balance information for each event") parser.add_option("-x", "--exit", action="store_true", dest="exit", default=False, help="exit on the 1st gratuitous IP move") |