qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jr...@apache.org
Subject svn commit: r1407448 - /qpid/trunk/qpid/tools/src/py/qpid-config
Date Fri, 09 Nov 2012 13:46:42 GMT
Author: jross
Date: Fri Nov  9 13:46:42 2012
New Revision: 1407448

URL: http://svn.apache.org/viewvc?rev=1407448&view=rev
Log:
Reverting change 1404836, which was causing test failures

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

Modified: qpid/trunk/qpid/tools/src/py/qpid-config
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/tools/src/py/qpid-config?rev=1407448&r1=1407447&r2=1407448&view=diff
==============================================================================
--- qpid/trunk/qpid/tools/src/py/qpid-config (original)
+++ qpid/trunk/qpid/tools/src/py/qpid-config Fri Nov  9 13:46:42 2012
@@ -18,8 +18,10 @@
 # specific language governing permissions and limitations
 # under the License.
 #
+import pdb
+
 import os
-from optparse import OptionParser, OptionGroup, IndentedHelpFormatter, SUPPRESS_HELP
+from optparse import OptionParser, OptionGroup, IndentedHelpFormatter
 import sys
 import locale
 
@@ -47,7 +49,7 @@ description = """
 Examples:
 
 $ qpid-config add queue q
-$ qpid-config add exchange direct d -b localhost:5672
+$ qpid-config add exchange direct d -a localhost:5672
 $ qpid-config exchanges -b 10.1.1.7:10000
 $ qpid-config queues -b guest/guest@broker-host:10000
 
@@ -173,7 +175,6 @@ def OptionsAndArguments(argv):
     group1.add_option("-t", "--timeout", action="store", type="int", default=10, metavar="<secs>",
help="Maximum time to wait for broker connection (in seconds)")
     group1.add_option("-r", "--recursive", action="store_true", help="Show bindings in queue
or exchange list")
     group1.add_option("-b", "--broker", action="store", type="string", default="localhost:5672",
metavar="<address>", help="Address of qpidd broker with syntax: [username/password@]
hostname | ip-address [:<port>]")
-    group1.add_option("-a", "--broker-addr", action="store", type="string", default="localhost:5672",
metavar="<address>", help=SUPPRESS_HELP)
     group1.add_option("--sasl-mechanism", action="store", type="string", metavar="<mech>",
help="SASL mechanism for authentication (e.g. EXTERNAL, ANONYMOUS, PLAIN, CRAM-MD, DIGEST-MD5,
GSSAPI). SASL automatically picks the most secure available mechanism - use this option to
override.")
     group1.add_option("--ssl-certificate", action="store", type="string", metavar="<cert>",
help="Client SSL certificate (PEM Format)")
     group1.add_option("--ssl-key", action="store", type="string", metavar="<key>",
help="Client SSL private key (PEM Format)")
@@ -244,8 +245,6 @@ def OptionsAndArguments(argv):
         config._recursive = True
     if opts.broker:
         config._host = opts.broker
-    if opts.broker_addr:
-        config._host = opts.broker_addr
     if opts.timeout is not None:
         config._connTimeout = opts.timeout
         if config._connTimeout == 0:



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


Mime
View raw message