def _resolve_alias(conn, name):
    result = conn.indices.get_alias(index=name)

    # If there are no returned results, this isn't an alias
    if not result:
        return name

    # If there are multiple keys, we have to raise, because this code doesn't
    # support updating mappings for multiple indices.
    if len(result) > 1:
        raise RuntimeError("We don't support autocreating/updating aliases "
                           "that point to multiple indices at the moment!")

    return result.keys()[0]
Resolve an alias into the underlying index name.
dataset/ETHPy150Open hypothesis/h/h/api/search/config.py/_resolve_alias