Comment 2 for bug 882658

Revision history for this message
Dan Prince (dan-prince) wrote :

In order to boot instances with the OSAPI I need just this change in image/glance.py:

+++ b/nova/image/glance.py
@@ -54,7 +54,7 @@ def _parse_image_ref(image_href):
     o = urlparse(image_href)
     port = o.port or 80
     host = o.netloc.split(':', 1)[0]
- image_id = int(o.path.split('/')[-1])
+ image_id = o.path.split('/')[-1]
     return (image_id, host, port)