From 2e4d835f6e30d4d13522f768d84c78ffd4950656 Mon Sep 17 00:00:00 2001 From: Xi Chen Date: Wed, 18 Apr 2018 16:27:27 -0700 Subject: [PATCH] remove commented code --- tools/aws_benchmarking/server/cluster_master.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/aws_benchmarking/server/cluster_master.py b/tools/aws_benchmarking/server/cluster_master.py index 8d3f7bed1fd..7952e61159e 100644 --- a/tools/aws_benchmarking/server/cluster_master.py +++ b/tools/aws_benchmarking/server/cluster_master.py @@ -258,6 +258,8 @@ def script_to_str(file_path): def run_instances(image_id, instance_type, count, role, cmd=""): + if count == 0: + return [] response = ec2client.run_instances( ImageId=image_id, InstanceType=instance_type, @@ -344,7 +346,6 @@ def parse_command(command_raw, defaults={}): if ":" in seg: parameters = seg.split(":") parameter_map[parameters[0]] = parameters[1] - #seg = "--" + seg.replace(":", " ") else: commands_processed.append(seg) for key, val in parameter_map.iteritems(): -- GitLab