

def list_images(self):
    result = self.connection.request('/my/datasets').object
    images = []
    for value in result:
        extra = {
            'type': value['type'],
            'urn': value['urn'],
            'os': value['os'],
            'default': value['default'],
        }
        image = NodeImage(id=value['id'], name=value['name'], driver=self.connection.driver, extra=extra)
        images.append(image)
    return images

dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/joyent.py JoyentNodeDriver.list_images/original