diff options
| author | Nuno Santos <nsantos@apache.org> | 2008-04-15 16:12:01 +0000 |
|---|---|---|
| committer | Nuno Santos <nsantos@apache.org> | 2008-04-15 16:12:01 +0000 |
| commit | 0cb55b441ec82124319fd3b154261a07ded82df2 (patch) | |
| tree | 23bff88d64af5486b8c4c58f28f0b9fd6358f3ac /qpid/python/commands | |
| parent | a106490812ea883620e84f50b4ce001d375e81f7 (diff) | |
| download | qpid-python-0cb55b441ec82124319fd3b154261a07ded82df2.tar.gz | |
QPID-921: applied qpid-patch36.diff on behalf of Ted Ross
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@648308 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python/commands')
| -rwxr-xr-x | qpid/python/commands/qpid-config | 10 | ||||
| -rwxr-xr-x | qpid/python/commands/qpid-route | 3 |
2 files changed, 9 insertions, 4 deletions
diff --git a/qpid/python/commands/qpid-config b/qpid/python/commands/qpid-config index 3fd8e93c63..b93e74c4d2 100755 --- a/qpid/python/commands/qpid-config +++ b/qpid/python/commands/qpid-config @@ -97,13 +97,17 @@ class BrokerManager: try: self.spec = qpid.spec.load (_specpath) self.client = Client (self.broker.host, self.broker.port, self.spec) - self.client.start ({"LOGIN":"guest","PASSWORD":"guest"}) + self.client.start (response='\x00' + "guest" + '\x00' + "guest", + mechanism="PLAIN") self.channel = self.client.channel (1) self.mclient = managementClient (self.spec) self.mchannel = self.mclient.addChannel (self.channel) except socket.error, e: - print "Connect Error:", e - exit (1) + print "Socket Error:", e + sys.exit (1) + except Closed, e: + print "Connect Failed:", e + sys.exit (1) def Overview (self): self.ConnectToBroker () diff --git a/qpid/python/commands/qpid-route b/qpid/python/commands/qpid-route index 0db28c791b..c268c638c8 100755 --- a/qpid/python/commands/qpid-route +++ b/qpid/python/commands/qpid-route @@ -79,7 +79,8 @@ class RouteManager: try: self.spec = qpid.spec.load (_specpath) self.client = Client (broker.host, broker.port, self.spec) - self.client.start ({"LOGIN":"guest","PASSWORD":"guest"}) + self.client.start (response='\x00' + "guest" + '\x00' + "guest", + mechanism="PLAIN") self.channel = self.client.channel (1) self.mclient = managementClient (self.spec) self.mch = self.mclient.addChannel (self.channel) |
