From 840a9b8702585dcb1ccd3e70c6c6c691918b4e38 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Sun, 15 Jan 2012 15:01:27 +1100 Subject: [PATCH] Tests - IP allocation simulation - LCP2 => non-deterministic The default in this script is still deterministic IPs. The LCP2 option should really turn off deterministic IPs. Also fix a typo... Signed-off-by: Martin Schwenke (This used to be ctdb commit c378a059b35fcc9955215a0095826c919d42153c) --- ctdb/tests/takeover/ctdb_takeover.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ctdb/tests/takeover/ctdb_takeover.py b/ctdb/tests/takeover/ctdb_takeover.py index c8c0ed6e337..7d61defd752 100755 --- a/ctdb/tests/takeover/ctdb_takeover.py +++ b/ctdb/tests/takeover/ctdb_takeover.py @@ -97,7 +97,12 @@ def process_args(extra_options=[]): (options, args) = parser.parse_args() if len(args) != 0: - parser.error("too many argumentss") + parser.error("too many arguments") + + # Could use a callback for this or change the default, but + # laziness is sometimes a virtue. ;-) + if options.lcp2: + options.deterministic_public_ips = False def print_begin(t, delim='='): print delim * 40