(alias)
Check if provided alias is valid (alias of a registered index).

    :param alias: index alias to check in registry
    :raises: ESRegistryError
Check if provided alias is valid (alias of a registered index).
Check if provided alias is valid ( alias of a registered index ) .
def verify_alias(alias):
    """Check if provided alias is valid (alias of a registered index).

    :param alias: index alias to check in registry
    :raises: ESRegistryError
    """
    if alias not in _ALIAS_REF_COUNTS:
        raise ESRegistryError(f"invalid index alias {alias!r}, expected one "
                              f"of {sorted(_ALIAS_REF_COUNTS)}")
def verify_alias ( alias ) : if alias not in _ALIAS_REF_COUNTS : raise ESRegistryError ( f"invalid index alias {alias!r}, expected one " f"of {sorted(_ALIAS_REF_COUNTS)}" )