def get_project_from_manifest(manifest, pid):
    """
    Returns the project entry from the manifest
    :param manifest:
    :param pid:
    :return:
    """
    if 'projects' not in manifest:
        return None
    for project in manifest['projects']:
        if project['identifier'] == pid:
            return project
    return None