hooks/multisite.py
def _list(key):
    """
    Internal implementation for list_* functions

    :param key: string for required entity (zone, zonegroup, realm, user)
    :type key: str
    :return: List of specified entities found
    :rtype: list
    """
    cmd = [
        RGW_ADMIN, '--id={}'.format(_key_name()),
        key, 'list'
    ]
    try:
        result = json.loads(_check_output(cmd))
        hookenv.log("Results: {}".format(
            result),
            level=hookenv.DEBUG)
        if isinstance(result, dict):
            return result['{}s'.format(key)]
        else:
            return result
    except TypeError:
        return []

    Internal implementation for list_* functions

    :param key: string for required entity (zone, zonegroup, realm, user)
    :type key: str
    :return: List of specified entities found
    :rtype: list
    
Internal implementation for list_* functions
Internal implementation for list_ * functions
def _list(key):
    cmd = [
        RGW_ADMIN, '--id={}'.format(_key_name()),
        key, 'list'
    ]
    try:
        result = json.loads(_check_output(cmd))
        hookenv.log("Results: {}".format(
            result),
            level=hookenv.DEBUG)
        if isinstance(result, dict):
            return result['{}s'.format(key)]
        else:
            return result
    except TypeError:
        return []
def _list ( key ) : cmd = [ RGW_ADMIN , '--id={}' . format ( _key_name ( ) ) , key , 'list' ] try : result = json . loads ( _check_output ( cmd ) ) hookenv . log ( "Results: {}" . format ( result ) , level = hookenv . DEBUG ) if isinstance ( result , dict ) : return result [ '{}s' . format ( key ) ] else : return result except TypeError : return [ ]
Internal implementation for list_* functions
Internal implementation for list_ * functions
"""
    Internal implementation for list_* functions

    :param key: string for required entity (zone, zonegroup, realm, user)
    :type key: str
    :return: List of specified entities found
    :rtype: list
    """
List of specified entities found
List of specified entities found
list
key
string for required entity (zone, zonegroup, realm, user)
string for required entity ( zone zonegroup realm user )