'List all projects associated with endpoint group.'

@controller.protected()
def list_projects_associated_with_endpoint_group(self, request, endpoint_group_id):

    endpoint_group_refs = self.catalog_api.list_projects_associated_with_endpoint_group(endpoint_group_id)
    projects = []
    for endpoint_group_ref in endpoint_group_refs:
        project = self.resource_api.get_project(endpoint_group_ref['project_id'])
        if project:
            projects.append(project)
    return resource.controllers.ProjectV3.wrap_collection(request.context_dict, projects)
