示例#1
0
 def stop_instances(self):
     instance_ids = instance_ids_from_querystring(self.querystring)
     instances = ec2_backend.stop_instances(instance_ids)
     template = Template(EC2_STOP_INSTANCES)
     return template.render(instances=instances)
示例#2
0
文件: instances.py 项目: flozano/moto
 def stop_instances(self):
     instance_ids = instance_ids_from_querystring(self.querystring)
     instances = ec2_backend.stop_instances(instance_ids)
     template = Template(EC2_STOP_INSTANCES)
     return template.render(instances=instances)
示例#3
0
 def stop_instances(self):
     instances = ec2_backend.stop_instances(self.instance_ids)
     template = Template(EC2_STOP_INSTANCES)
     return template.render(instances=instances)