

def _to_images(self, object):
    '\n        Request a list of images and convert that list to a list of NodeImage\n        objects.\n\n        Request a list of images from the OpenNebula web interface, and\n        issue a request to convert each XML object representation of an image\n        to a NodeImage object.\n\n        :rtype:  ``list`` of :class:`NodeImage`\n        :return: List of images.\n        '
    images = []
    for element in object.findall('DISK'):
        image_id = element.attrib['href'].partition('/storage/')[2]
        image = object.connection.request(('/storage/%s' % image_id)).object
        images.append(self._to_image(image))
    return images

dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/opennebula.py OpenNebulaNodeDriver._to_images/VarMisuse@50/199 `self`->`object`