示例#1
0
文件: amis.py 项目: Hookshot/moto
 def describe_images(self):
     ami_ids = image_ids_from_querystring(self.querystring)
     try:
         images = ec2_backend.describe_images(ami_ids=ami_ids)
     except InvalidIdError as exc:
         template = Template(DESCRIBE_IMAGES_INVALID_IMAGE_ID_RESPONSE)
         return template.render(image_id=exc.id), dict(status=400)
     else:
         template = Template(DESCRIBE_IMAGES_RESPONSE)
         return template.render(images=images)
示例#2
0
文件: amis.py 项目: jwoolf/moto
 def describe_images(self):
     ami_ids = image_ids_from_querystring(self.querystring)
     try:
         images = ec2_backend.describe_images(ami_ids=ami_ids)
     except InvalidIdError as exc:
         template = Template(DESCRIBE_IMAGES_INVALID_IMAGE_ID_RESPONSE)
         return template.render(image_id=exc.id), dict(status=400)
     else:
         template = Template(DESCRIBE_IMAGES_RESPONSE)
         return template.render(images=images)
示例#3
0
文件: amis.py 项目: invenia/moto
 def describe_images(self):
     ami_ids = image_ids_from_querystring(self.querystring)
     filters = filters_from_querystring(self.querystring)
     images = ec2_backend.describe_images(ami_ids=ami_ids, filters=filters)
     template = Template(DESCRIBE_IMAGES_RESPONSE)
     return template.render(images=images)
示例#4
0
文件: amis.py 项目: bobbyi/moto
 def describe_images(self):
     ami_ids = image_ids_from_querystring(self.querystring)
     filters = filters_from_querystring(self.querystring)
     images = ec2_backend.describe_images(ami_ids=ami_ids, filters=filters)
     template = Template(DESCRIBE_IMAGES_RESPONSE)
     return template.render(images=images)
示例#5
0
文件: amis.py 项目: Katafalkas/moto
 def describe_images(self):
     images = ec2_backend.describe_images()
     template = Template(DESCRIBE_IMAGES_RESPONSE)
     return template.render(images=images)
示例#6
0
 def describe_images(self):
     images = ec2_backend.describe_images()
     template = Template(DESCRIBE_IMAGES_RESPONSE)
     return template.render(images=images)