summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xqpid/tools/src/py/qmf-tool7
1 files changed, 6 insertions, 1 deletions
diff --git a/qpid/tools/src/py/qmf-tool b/qpid/tools/src/py/qmf-tool
index f22caa90c7..c01900ac62 100755
--- a/qpid/tools/src/py/qmf-tool
+++ b/qpid/tools/src/py/qmf-tool
@@ -306,7 +306,12 @@ class QmfData:
methodName = tokens[1]
args = []
for arg in tokens[2:]:
- if arg[0] == '{' or arg[0] == '[' or arg.isdigit():
+ ##
+ ## If the argument is a map, list, boolean, integer, or floating (one decimal point),
+ ## run it through the Python evaluator so it is converted to the correct type.
+ ##
+ if arg[0] == '{' or arg[0] == '[' or arg == "True" or arg == "False" \
+ or (arg.count('.') < 2 and arg.replace('.','').isdigit()):
args.append(eval(arg))
else:
args.append(arg)