예제 #1
0
파일: replica.py 프로젝트: kbg/rucio
def list_dataset_replicas_vp(scope, name, deep=False):
    """
    :param scope: The scope of the dataset.
    :param name: The name of the dataset.
    :param deep: Lookup at the file level.

    :returns: If VP exists a list of dicts of sites, otherwise a list of dicts of dataset replicas

    NOTICE: This is an RnD function and might change or go away at any time.
    """
    return replica.list_dataset_replicas_vp(scope=scope, name=name, deep=deep)
예제 #2
0
def list_dataset_replicas_vp(scope, name, deep=False, vo='def'):
    """
    :param scope: The scope of the dataset.
    :param name: The name of the dataset.
    :param deep: Lookup at the file level.
    :param vo: The vo to act on.

    :returns: If VP exists a list of dicts of sites, otherwise nothing

    NOTICE: This is an RnD function and might change or go away at any time.
    """

    scope = InternalScope(scope, vo=vo)
    for r in replica.list_dataset_replicas_vp(scope=scope, name=name, deep=deep):
        yield api_update_return_dict(r)