def _get_cloudpipe_for_project(self, context):
        """Get the cloudpipe instance for a project from context."""
        cloudpipes = self._get_all_cloudpipes(context) or [None]
        return cloudpipes[0]
dataset/ETHPy150Open openstack/nova/nova/api/openstack/compute/legacy_v2/contrib/cloudpipe.py/CloudpipeController._get_cloudpipe_for_project/original