(info_or_cname)
Check if registry exists for an index.

    :param info_or_cname: index info object or canonical name
    :raises: ESRegistryError
Check if registry exists for an index.
Check if registry exists for an index .
def verify_registered(info_or_cname):
    """Check if registry exists for an index.

    :param info_or_cname: index info object or canonical name
    :raises: ESRegistryError
    """
    cname = getattr(info_or_cname, "alias", info_or_cname)
    if cname not in _ES_INFO_REGISTRY:
        raise ESRegistryError(f"invalid registry name {cname!r}, expected one "
                              f"of {sorted(_ES_INFO_REGISTRY)}")
def verify_registered ( info_or_cname ) : cname = getattr ( info_or_cname , "alias" , info_or_cname ) if cname not in _ES_INFO_REGISTRY : raise ESRegistryError ( f"invalid registry name {cname!r}, expected one " f"of {sorted(_ES_INFO_REGISTRY)}" )