From 64f97a9f0b057485838d0dd62490591e09a7b56f Mon Sep 17 00:00:00 2001 From: Xi Chen Date: Wed, 18 Apr 2018 15:36:24 -0700 Subject: [PATCH] covering edge cases --- tools/aws_benchmarking/server/cluster_master.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/aws_benchmarking/server/cluster_master.py b/tools/aws_benchmarking/server/cluster_master.py index f3454a1b21b..8d3f7bed1fd 100644 --- a/tools/aws_benchmarking/server/cluster_master.py +++ b/tools/aws_benchmarking/server/cluster_master.py @@ -337,7 +337,7 @@ def log_to_file(source, filename): def parse_command(command_raw, defaults={}): if not command_raw: - return "" + command_raw = "" commands_processed = [] parameter_map = copy.copy(defaults) for seg in command_raw.split(","): @@ -348,7 +348,7 @@ def parse_command(command_raw, defaults={}): else: commands_processed.append(seg) for key, val in parameter_map.iteritems(): - commands_processed.append("--" + key + " " + val) + commands_processed.append("--" + key + " " + str(val)) return " ".join(commands_processed) -- GitLab