You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by tr...@apache.org on 2008/09/19 23:01:08 UTC
svn commit: r697240 - /incubator/qpid/trunk/qpid/python/commands/qpid-route
Author: tross
Date: Fri Sep 19 14:01:07 2008
New Revision: 697240
URL: http://svn.apache.org/viewvc?rev=697240&view=rev
Log:
One more fix for qpid-route
Modified:
incubator/qpid/trunk/qpid/python/commands/qpid-route
Modified: incubator/qpid/trunk/qpid/python/commands/qpid-route
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/python/commands/qpid-route?rev=697240&r1=697239&r2=697240&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/python/commands/qpid-route (original)
+++ incubator/qpid/trunk/qpid/python/commands/qpid-route Fri Sep 19 14:01:07 2008
@@ -154,7 +154,7 @@
if res.status == 4:
raise Exception("Can't create a durable route on a non-durable link")
if _verbose:
- print "Bridge method returned:", res.status, res.statusText
+ print "Bridge method returned:", res.status, res.text
def DelRoute (self, srcBroker, exchange, routingKey):
self.src = qmfconsole.BrokerURL(srcBroker)
@@ -171,7 +171,7 @@
print "Closing bridge..."
res = bridge.close()
if res.status != 0:
- raise Exception("Error closing bridge: %d - %s" % (res.status, res.statusText))
+ raise Exception("Error closing bridge: %d - %s" % (res.status, res.text))
if len (bridges) == 1 and _dellink:
link = self.getLink ()
if link == None:
@@ -180,7 +180,7 @@
print "Last bridge on link, closing link..."
res = link.close()
if res.status != 0:
- raise Exception("Error closing link: %d - %s" % (res.status, res.statusText))
+ raise Exception("Error closing link: %d - %s" % (res.status, res.text))
sys.exit (0)
if not _quiet:
raise Exception("Route not found")
@@ -213,7 +213,7 @@
print "Deleting Bridge: %s:%d %s %s... " % (myLink.host, myLink.port, bridge.dest, bridge.key),
res = bridge.close()
if res.status != 0:
- print "Error: %d - %s" % (res.status, res.statusText)
+ print "Error: %d - %s" % (res.status, res.text)
elif _verbose:
print "Ok"
@@ -224,7 +224,7 @@
print "Deleting Link: %s:%d... " % (link.host, link.port),
res = link.close()
if res.status != 0:
- print "Error: %d - %s" % (res.status, res.statusText)
+ print "Error: %d - %s" % (res.status, res.text)
elif _verbose:
print "Ok"