def get_cluster_ref_by_name(session, cluster_name):
    all_clusters = get_all_cluster_mors(session)
    for cluster in all_clusters:
        if (hasattr(cluster, 'propSet') and
                    cluster.propSet[0].val == cluster_name):
            return cluster.obj
L{BookBuilder.buildPDF} succeeds even if the paths it is operating on
dataset/ETHPy150Open openstack/nova/nova/virt/vmwareapi/vm_util.py/get_cluster_ref_by_name--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/python/test/test_release.py/BookBuilderTests.test_buildPDFLongPath