You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ac...@apache.org on 2014/02/05 16:11:45 UTC

svn commit: r1564797 - /qpid/trunk/qpid/tools/src/py/qpid-ha

Author: aconway
Date: Wed Feb  5 15:11:45 2014
New Revision: 1564797

URL: http://svn.apache.org/r1564797
Log:
QPID-5541: HA incorrect options for expected-backups in qpid-ha tool

Remove invalid --backup option from qpid-ha set and query commands.

Modified:
    qpid/trunk/qpid/tools/src/py/qpid-ha

Modified: qpid/trunk/qpid/tools/src/py/qpid-ha
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/tools/src/py/qpid-ha?rev=1564797&r1=1564796&r2=1564797&view=diff
==============================================================================
--- qpid/trunk/qpid/tools/src/py/qpid-ha (original)
+++ qpid/trunk/qpid/tools/src/py/qpid-ha Wed Feb  5 15:11:45 2014
@@ -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])



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org