提交 2e4d835f 编写于 作者: X Xi Chen

remove commented code

上级 64f97a9f
...@@ -258,6 +258,8 @@ def script_to_str(file_path): ...@@ -258,6 +258,8 @@ def script_to_str(file_path):
def run_instances(image_id, instance_type, count, role, cmd=""): def run_instances(image_id, instance_type, count, role, cmd=""):
if count == 0:
return []
response = ec2client.run_instances( response = ec2client.run_instances(
ImageId=image_id, ImageId=image_id,
InstanceType=instance_type, InstanceType=instance_type,
...@@ -344,7 +346,6 @@ def parse_command(command_raw, defaults={}): ...@@ -344,7 +346,6 @@ def parse_command(command_raw, defaults={}):
if ":" in seg: if ":" in seg:
parameters = seg.split(":") parameters = seg.split(":")
parameter_map[parameters[0]] = parameters[1] parameter_map[parameters[0]] = parameters[1]
#seg = "--" + seg.replace(":", " ")
else: else:
commands_processed.append(seg) commands_processed.append(seg)
for key, val in parameter_map.iteritems(): for key, val in parameter_map.iteritems():
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册