

def _to_nodes(self, object):
    '\n        Request a list of compute nodes and convert that list to a list of\n        Node objects.\n\n        Request a list of compute nodes from the OpenNebula web interface, and\n        issue a request to convert each XML object representation of a node\n        to a Node object.\n\n        :rtype:  ``list`` of :class:`Node`\n        :return: A list of compute nodes.\n        '
    computes = []
    for element in object.findall('COMPUTE'):
        compute_id = element.attrib['href'].partition('/compute/')[2]
        compute = self.connection.request(('/compute/%s' % compute_id)).object
        computes.append(self._to_node(self))
    return computes

dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/opennebula.py OpenNebulaNodeDriver._to_nodes/VarMisuse@73/238 `compute`->`self`