From ceababe179b3f80a9444eef358f7ff96c81f7a18 Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Fri, 19 Sep 2008 21:01:07 +0000 Subject: 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 --- python/commands/qpid-route | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'python/commands') 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" -- cgit v1.2.1