summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2014-02-05 15:11:45 +0000
committerAlan Conway <aconway@apache.org>2014-02-05 15:11:45 +0000
commitd7aae95e552fa9e06d8332a4ec8732a2cc667a0b (patch)
treedfc5fab2101ce3a07ca0d12a8e0ae31fdb67ac1d
parentcf3259bf2b915af138c746cb1b1ccfb743670dc5 (diff)
downloadqpid-python-d7aae95e552fa9e06d8332a4ec8732a2cc667a0b.tar.gz
QPID-5541: HA incorrect options for expected-backups in qpid-ha tool
Remove invalid --backup option from qpid-ha set and query commands. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1564797 13f79535-47bb-0310-9956-ffa450edef68
-rwxr-xr-xqpid/tools/src/py/qpid-ha3
1 files changed, 0 insertions, 3 deletions
diff --git a/qpid/tools/src/py/qpid-ha b/qpid/tools/src/py/qpid-ha
index cf054409d8..daa73d3312 100755
--- a/qpid/tools/src/py/qpid-ha
+++ b/qpid/tools/src/py/qpid-ha
@@ -133,12 +133,10 @@ class SetCmd(Command):
Command.__init__(self, "set", "Set HA configuration settings")
self.add("--brokers-url", "<url>", "string", "URL with address of each broker in the cluster. Used by brokers to connect to each other.")
self.add("--public-url", "<url>", "string", "URL advertised to clients to connect to the cluster. May be a list or a VIP.")
- self.add("--backups", "<n>", "int", "Expect <n> backups to be running"),
def do_execute(self, qmf_broker, ha_broker, opts, args):
if (opts.brokers_url): qmf_broker._method("setBrokersUrl", {"url":opts.brokers_url}, HA_BROKER)
if (opts.public_url): qmf_broker._method("setPublicUrl", {"url":opts.public_url}, HA_BROKER)
- if (opts.backups): qmf_broker._method("setExpectedBackups", {"expectedBackups":opts.backups}, HA_BROKER)
SetCmd()
@@ -151,7 +149,6 @@ class QueryCmd(Command):
for x in [("Status:", hb.status),
("Brokers URL:", hb.brokersUrl),
("Public URL:", hb.publicUrl),
- ("Expected Backups:", hb.expectedBackups),
("Replicate: ", hb.replicateDefault)
]:
print "%-20s %s"%(x[0], x[1])