'List the images in an ECR repository
:param  ex_repository_name: The name of the repository to check
defaults to the default repository.
:type   ex_repository_name: ``str``
:return: a list of images
:rtype: ``list`` of :class:`libcloud.container.base.ContainerImage`'

def list_images(self, ex_repository_name):

    request = {}
    request['repositoryName'] = ex_repository_name
    list_response = self.ecr_connection.request(ROOT, method='POST', data=json.dumps(request), headers=self._get_ecr_headers('ListImages')).object
    repository_id = self.ex_get_repository_id(ex_repository_name)
    host = self._get_ecr_host(repository_id)
    return self._to_images(list_response['imageIds'], host, ex_repository_name)
