summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorJosh Kearney <josh@jk0.org>2011-08-12 16:18:48 -0500
committerJosh Kearney <josh@jk0.org>2011-08-12 16:18:48 -0500
commitb60fa0d09d02066863736a3e98f07094c4db05a6 (patch)
tree0f2b7f52820a3820eb826c533da73287c3b50c22 /nova/tests
parent665d6130d0eb95ba1464e0ef7c09c4fa8f7f61b8 (diff)
Check uncompressed VHD size.
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/xenapi/stubs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/tests/xenapi/stubs.py b/nova/tests/xenapi/stubs.py
index 0d0f84e32..a6a1febd6 100644
--- a/nova/tests/xenapi/stubs.py
+++ b/nova/tests/xenapi/stubs.py
@@ -28,10 +28,10 @@ from nova import utils
def stubout_instance_snapshot(stubs):
@classmethod
- def fake_fetch_image(cls, context, session, instance_id, image, user,
+ def fake_fetch_image(cls, context, session, instance, image, user,
project, type):
from nova.virt.xenapi.fake import create_vdi
- name_label = "instance-%s" % instance_id
+ name_label = "instance-%s" % instance.id
#TODO: create fake SR record
sr_ref = "fakesr"
vdi_ref = create_vdi(name_label=name_label, read_only=False,