'Returns a list of all running Nodes
:rtype: ``list`` of :class:`Node`'

def list_nodes(self):

    res = self.connection.request('/rest/hosting/vm/list').parse_body()
    nodes = []
    for vm in res['vms']:
        node = self._to_node(vm)
        if (node is not None):
            nodes.append(node)
    return nodes
