Change id to image to contain full path
@@ -390,9 +390,10 @@ class LibvirtNodeDriver(NodeDriver):
for image in output.strip().split('\n'):
name, size = image.split(' ')
+ id = name
name = name.replace(IMAGES_LOCATION + '/', '')
size = int(size)
- nodeimage = NodeImage(id=name, name=name, driver=self, extra={'host': self.host, 'size': size})
+ nodeimage = NodeImage(id=id, name=name, driver=self, extra={'host': self.host, 'size': size})
images.append(nodeimage)
return images
