src/lsi/utils/hosts.py
def _list_all_cached():
    """
    Reads the description cache, returning each instance's information.
    :return: A list of host entries.
    :rtype: [:py:class:`HostEntry`]
    """
    with open(get_cache_location()) as f:
        contents = f.read()
        objects = json.loads(contents)
        return [HostEntry.from_dict(obj) for obj in objects]
def _list_all_cached():
    """
    Reads the description cache, returning each instance's information.
    :return: A list of host entries.
    :rtype: [:py:class:`HostEntry`]
    """
    with open(get_cache_location()) as f:
        contents = f.read()
        objects = json.loads(contents)
        return [HostEntry.from_dict(obj) for obj in objects]
Reads the description cache, returning each instance's information.
    :return: A list of host entries.
    :rtype: [:py:class:`HostEntry`]