diff options
author | Martin Schwenke <martin@meltin.net> | 2012-01-15 15:01:27 +1100 |
---|---|---|
committer | Martin Schwenke <martin@meltin.net> | 2012-02-06 16:03:01 +1100 |
commit | 840a9b8702585dcb1ccd3e70c6c6c691918b4e38 (patch) | |
tree | cc9abd8da369db2861a5c54ceeaac78ce8bb0edc | |
parent | e3b85bba3fe2a6ff1e4aa258a4ba1f6b17facc9f (diff) | |
download | samba-840a9b8702585dcb1ccd3e70c6c6c691918b4e38.tar.gz samba-840a9b8702585dcb1ccd3e70c6c6c691918b4e38.tar.xz samba-840a9b8702585dcb1ccd3e70c6c6c691918b4e38.zip |
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 <martin@meltin.net>
(This used to be ctdb commit c378a059b35fcc9955215a0095826c919d42153c)
-rwxr-xr-x | ctdb/tests/takeover/ctdb_takeover.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ctdb/tests/takeover/ctdb_takeover.py b/ctdb/tests/takeover/ctdb_takeover.py index c8c0ed6e33..7d61defd75 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 |