~0x44/nova/extdoc

« back to all changes in this revision

Viewing changes to nova/virt/vmwareapi/fake.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:
412
412
    return [{'type': 'fake'}]
413
413
 
414
414
 
415
 
def fake_fetch_image(image, instance, **kwargs):
 
415
def fake_fetch_image(context, image, instance, **kwargs):
416
416
    """Fakes fetch image call. Just adds a reference to the db for the file."""
417
417
    ds_name = kwargs.get("datastore_name")
418
418
    file_path = kwargs.get("file_path")
420
420
    _add_file(ds_file_path)
421
421
 
422
422
 
423
 
def fake_upload_image(image, instance, **kwargs):
 
423
def fake_upload_image(context, image, instance, **kwargs):
424
424
    """Fakes the upload of an image."""
425
425
    pass
426
426
 
427
427
 
428
 
def fake_get_vmdk_size_and_properties(image_id, instance):
 
428
def fake_get_vmdk_size_and_properties(context, image_id, instance):
429
429
    """Fakes the file size and properties fetch for the image file."""
430
430
    props = {"vmware_ostype": "otherGuest",
431
431
            "vmware_adaptertype": "lsiLogic"}