From 2e570851d590dd57cf97bb8517de99318dcc0fcb Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Sun, 1 Aug 2010 11:41:52 +1000 Subject: Testing: IP allocation simulation - save some warnings for verbose mode. We don't need to see warnings about unallocatable IPs unless we're in verbose mode. Can node be run with -n (and without -v or -d) to see just the statistics. Signed-off-by: Martin Schwenke (This used to be ctdb commit 55370936ac5def5ebf138910388a2ddc2df9c20f) --- ctdb/tests/takeover/ctdb_takeover.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ctdb/tests') diff --git a/ctdb/tests/takeover/ctdb_takeover.py b/ctdb/tests/takeover/ctdb_takeover.py index f24940ce70..ce9cc115e6 100755 --- a/ctdb/tests/takeover/ctdb_takeover.py +++ b/ctdb/tests/takeover/ctdb_takeover.py @@ -301,7 +301,7 @@ class Cluster(object): min = num if pnn == -1: - print "Could not find node to take over public address", ip + verbose_print("Could not find node to take over public address %s" % ip) return False self.nodes[pnn].current_addresses.add(ip) @@ -331,7 +331,7 @@ class Cluster(object): min = num if pnn == -1: - print "Could not find node to take over public address", ip + verbose_print("Could not find node to take over public address %s" % ip) return False self.nodes[pnn].current_addresses.add(ip) -- cgit