You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by tr...@apache.org on 2016/03/19 00:06:56 UTC
[38/50] [abbrv] qpid-dispatch git commit: NO-JIRA - Convert "true"
and "false" into booleans for attribute values
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/master
Commit: 17ebf681a9f5945969aa66f1b9705dbf62c31366
Parents: b3e011e
Author: Ted Ross <tr...@redhat.com>
Authored: Thu Mar 17 07:11:59 2016 -0400
Committer: Ted Ross <tr...@redhat.com>
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: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org