diff --git a/tools/aws_benchmarking/server/cluster_master.py b/tools/aws_benchmarking/server/cluster_master.py index 8d3f7bed1fd74772cb95ffc31ba6f1e7a909d355..7952e61159ec31a4be5394b50f30cbc20f9b414e 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():