summaryrefslogtreecommitdiff
path: root/python/commands/qpid-route
diff options
context:
space:
mode:
Diffstat (limited to 'python/commands/qpid-route')
-rwxr-xr-xpython/commands/qpid-route4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/commands/qpid-route b/python/commands/qpid-route
index b515b91267..9965047000 100755
--- a/python/commands/qpid-route
+++ b/python/commands/qpid-route
@@ -93,12 +93,12 @@ class RouteManager:
broker = brokers[0]
link = self.getLink()
if link == None:
- if self.remote.authName == "anonymous":
+ if not self.remote.authName or self.remote.authName == "anonymous":
mech = "ANONYMOUS"
else:
mech = "PLAIN"
res = broker.connect(self.remote.host, self.remote.port, _durable,
- mech, self.remote.authName, self.remote.authPass,
+ mech, self.remote.authName or "", self.remote.authPass or "",
_transport)
if _verbose:
print "Connect method returned:", res.status, res.text