diff options
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) |
