summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Ross <tross@apache.org>2008-09-19 21:01:07 +0000
committerTed Ross <tross@apache.org>2008-09-19 21:01:07 +0000
commitceababe179b3f80a9444eef358f7ff96c81f7a18 (patch)
treee0d961a54dba407375977dd1e7ee1f6c31e7caf7
parent723bff9590332fee6b4ecacb08dc762613994128 (diff)
downloadqpid-python-ceababe179b3f80a9444eef358f7ff96c81f7a18.tar.gz
One more fix for qpid-route
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@697240 13f79535-47bb-0310-9956-ffa450edef68
-rwxr-xr-xpython/commands/qpid-route10
1 files changed, 5 insertions, 5 deletions
diff --git a/python/commands/qpid-route b/python/commands/qpid-route
index 172927b72a..8a9522e53a 100755
--- a/python/commands/qpid-route
+++ b/python/commands/qpid-route
@@ -154,7 +154,7 @@ class RouteManager:
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 @@ class RouteManager:
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 @@ class RouteManager:
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 @@ class RouteManager:
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 @@ class RouteManager:
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"