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)
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)
def describe_images(self): images = ec2_backend.describe_images() template = Template(DESCRIBE_IMAGES_RESPONSE) return template.render(images=images)