Return-Path: X-Original-To: apmail-qpid-commits-archive@www.apache.org Delivered-To: apmail-qpid-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 15DEA49BB for ; Mon, 6 Jun 2011 15:54:36 +0000 (UTC) Received: (qmail 44180 invoked by uid 500); 6 Jun 2011 15:54:36 -0000 Delivered-To: apmail-qpid-commits-archive@qpid.apache.org Received: (qmail 44156 invoked by uid 500); 6 Jun 2011 15:54:36 -0000 Mailing-List: contact commits-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@qpid.apache.org Delivered-To: mailing list commits@qpid.apache.org Received: (qmail 44149 invoked by uid 99); 6 Jun 2011 15:54:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jun 2011 15:54:36 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jun 2011 15:54:35 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id DEC2023889C5; Mon, 6 Jun 2011 15:54:14 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1132683 - /qpid/trunk/qpid/tools/src/py/qpid-cluster Date: Mon, 06 Jun 2011 15:54:14 -0000 To: commits@qpid.apache.org From: aconway@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110606155414.DEC2023889C5@eris.apache.org> Author: aconway Date: Mon Jun 6 15:54:14 2011 New Revision: 1132683 URL: http://svn.apache.org/viewvc?rev=1132683&view=rev Log: NO-JIRA: Fix typo in qpid/tools/src/py/qpid-cluster. Modified: qpid/trunk/qpid/tools/src/py/qpid-cluster Modified: qpid/trunk/qpid/tools/src/py/qpid-cluster URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/tools/src/py/qpid-cluster?rev=1132683&r1=1132682&r2=1132683&view=diff ============================================================================== --- qpid/trunk/qpid/tools/src/py/qpid-cluster (original) +++ qpid/trunk/qpid/tools/src/py/qpid-cluster Mon Jun 6 15:54:14 2011 @@ -247,7 +247,7 @@ def main(argv=None): parser.add_option("-k", "--all-stop", action="store_true", default=False, help="Shut down the whole cluster") parser.add_option("-f", "--force", action="store_true", default=False, help="Suppress the 'are you sure' prompt") parser.add_option("-n", "--numeric", action="store_true", default=False, help="Don't resolve names") - + opts, args = parser.parse_args(args=argv) if args: @@ -268,12 +268,12 @@ def main(argv=None): if opts.del_connection: config._delConn = opts.del_connection - if len(config._delConn.split(":")) != 2: + if len(config._delConn.split(":")) != 2: parser.error("Member ID must be of form: :") if opts.stop: - config._stopID = opts.stop - if len(config._stopId.split(":")) != 2: + config._stopId = opts.stop + if len(config._stopId.split(":")) != 2: parser.error("Member ID must be of form: :") config._stopAll = opts.all_stop @@ -303,6 +303,7 @@ def main(argv=None): bm.Disconnect() except Exception, e: + raise print str(e) return 1 --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:commits-subscribe@qpid.apache.org