Exemple #1
0
 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)
Exemple #2
0
 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)
Exemple #3
0
 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)
Exemple #4
0
 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)
Exemple #5
0
 def describe_images(self):
     images = ec2_backend.describe_images()
     template = Template(DESCRIBE_IMAGES_RESPONSE)
     return template.render(images=images)
Exemple #6
0
 def describe_images(self):
     images = ec2_backend.describe_images()
     template = Template(DESCRIBE_IMAGES_RESPONSE)
     return template.render(images=images)