~0x44/nova/extdoc

« back to all changes in this revision

Viewing changes to nova/api/openstack/create_instance_helper.py

Update GlanceClient, GlanceImageService, and Glance Xen plugin to work with Glance keystone.

Show diffs side-by-side

added added

removed removed

Lines of Context:
92
92
        if str(image_href).startswith(req.application_url):
93
93
            image_href = image_href.split('/').pop()
94
94
        try:
95
 
            image_service, image_id = nova.image.get_image_service(image_href)
 
95
            image_service, image_id = nova.image.get_image_service(context,
 
96
                                                                   image_href)
96
97
            kernel_id, ramdisk_id = self._get_kernel_ramdisk_from_image(
97
98
                                                req, image_service, image_id)
98
99
            images = set([str(x['id']) for x in image_service.index(context)])