NO-JIRA - Convert "true" and "false" into booleans for attribute values
Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/17ebf681 Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/17ebf681 Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/17ebf681 Branch: refs/heads/tross-DISPATCH-179-1 Commit: 17ebf681a9f5945969aa66f1b9705dbf62c31366 Parents: b3e011e Author: Ted Ross <[email protected]> Authored: Thu Mar 17 07:11:59 2016 -0400 Committer: Ted Ross <[email protected]> Committed: Thu Mar 17 07:11:59 2016 -0400 ---------------------------------------------------------------------- tools/qdmanage | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/17ebf681/tools/qdmanage ---------------------------------------------------------------------- diff --git a/tools/qdmanage b/tools/qdmanage index 9c7dd18..6954872 100755 --- a/tools/qdmanage +++ b/tools/qdmanage @@ -30,7 +30,10 @@ def attr_split(attrstr): """Split an attribute string of the form name=value or name to indicate None""" nv = attrstr.split("=", 1) if len(nv) == 1: return [nv[0], None] - else: return nv + else: + if nv[1] == "true": nv[1] = True + if nv[1] == "false": nv[1] = False + return nv class QdManage(): --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
