You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by gm...@apache.org on 2020/02/18 20:07:41 UTC
[qpid-dispatch] branch master updated: DISPATCH-1518: Additional
fix to clean_attrs to clean only string type attributes
This is an automated email from the ASF dual-hosted git repository.
gmurthy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/qpid-dispatch.git
The following commit(s) were added to refs/heads/master by this push:
new bc08546 DISPATCH-1518: Additional fix to clean_attrs to clean only string type attributes
bc08546 is described below
commit bc085461093511d22a5574a5ce54b41177379b13
Author: Ganesh Murthy <gm...@apache.org>
AuthorDate: Tue Feb 18 15:07:23 2020 -0500
DISPATCH-1518: Additional fix to clean_attrs to clean only string type attributes
---
python/qpid_dispatch/management/client.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python/qpid_dispatch/management/client.py b/python/qpid_dispatch/management/client.py
index 35836a8..bee0539 100644
--- a/python/qpid_dispatch/management/client.py
+++ b/python/qpid_dispatch/management/client.py
@@ -85,7 +85,7 @@ class Node(object):
"off" : False}
if isinstance(attrs, dict):
for key in attrs.keys():
- if attrs[key] in BOOL_VALUES.keys():
+ if isinstance(attrs[key], str) and attrs[key] in BOOL_VALUES.keys():
attrs[key] = BOOL_VALUES[attrs[key]]
return attrs
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org