~0x44/nova/extdoc

« back to all changes in this revision

Viewing changes to nova/virt/images.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:
37
37
    #             when it is added to glance.  Right now there is no
38
38
    #             auth checking in glance, so we assume that access was
39
39
    #             checked before we got here.
40
 
    (image_service, image_id) = nova.image.get_image_service(image_href)
 
40
    (image_service, image_id) = nova.image.get_image_service(context,
 
41
                                                             image_href)
41
42
    with open(path, "wb") as image_file:
42
43
        metadata = image_service.get(context, image_id, image_file)
43
44
    return metadata