'Get the members of an image.'

def index(self, req, image_id):

    try:
        self.db_api.image_get(req.context, image_id, v1_mode=True)
    except exception.NotFound:
        msg = (_('Image    %(id)s    not    found') % {'id': image_id})
        LOG.warn(msg)
        raise webob.exc.HTTPNotFound(msg)
    except exception.Forbidden:
        msg = (_LW("Access    denied    to    image    %(id)s    but    returning    'not    found'") % {'id': image_id})
        LOG.warn(msg)
        raise webob.exc.HTTPNotFound()
    members = self.db_api.image_member_find(req.context, image_id=image_id)
    LOG.debug('Returning    member    list    for    image    %(id)s', {'id': image_id})
    return dict(members=make_member_list(members, member_id='member', can_share='can_share'))
