virt: convert hardware module to use nova.objects.ImageMeta

Convert the APIs in the nova.virt.hardware module to expect to
receive an instance of nova.objects.ImageMeta instead of a
dict.

Update the virt drivers to convert the dict into an ImageMeta
module, as a stepping stone, until they to are converted to
use ImageMeta throughout.

Change-Id: Iac034d864cd0265759aaa7c8049fafa276763cc0
This commit is contained in:
Daniel P. Berrange
2015-06-04 13:42:25 +01:00
committed by Jay Pipes
parent 8a73c0430d
commit 36d37a670e
9 changed files with 182 additions and 179 deletions

View File

@@ -79,8 +79,8 @@ class _FakeImageService(object):
'deleted': False,
'status': 'active',
'is_public': True,
'container_format': None,
'disk_format': None,
'container_format': 'bare',
'disk_format': 'raw',
'size': '83594576',
'properties': {'kernel_id': CONF.null_kernel,
'ramdisk_id': CONF.null_kernel}}