DISPATCH-737: Empty string as allowed_mechs is interpreted as no mechs allowed. 
Use None instead and Proton will select the best appropriatte mechanism


Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/40f1005c
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/40f1005c
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/40f1005c

Branch: refs/heads/master
Commit: 40f1005c4aa0b4c9b74fbde0d9ad65050b8328d7
Parents: e0bbd3e
Author: Jakub Scholz <w...@scholzj.com>
Authored: Mon Jul 17 22:27:29 2017 +0200
Committer: Jakub Scholz <w...@scholzj.com>
Committed: Mon Jul 17 22:27:29 2017 +0200

----------------------------------------------------------------------
 python/qpid_dispatch/management/client.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/40f1005c/python/qpid_dispatch/management/client.py
----------------------------------------------------------------------
diff --git a/python/qpid_dispatch/management/client.py 
b/python/qpid_dispatch/management/client.py
index f50cf53..a449e33 100644
--- a/python/qpid_dispatch/management/client.py
+++ b/python/qpid_dispatch/management/client.py
@@ -96,7 +96,7 @@ class Node(object):
                                   timeout=timeout,
                                   ssl_domain=ssl_domain,
                                   sasl_enabled=sasl_enabled,
-                                  allowed_mechs=str(sasl.mechs) if sasl else 
None,
+                                  allowed_mechs=str(sasl.mechs) if sasl and 
sasl.mechs != None else None,
                                   user=str(sasl.user) if sasl else None,
                                   password=str(sasl.password) if sasl else 
None)
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org
For additional commands, e-mail: commits-h...@qpid.apache.org

Reply via email to