summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/test_xenapi.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/nova/tests/test_xenapi.py b/nova/tests/test_xenapi.py
index 5f967862b..c016ca1f1 100644
--- a/nova/tests/test_xenapi.py
+++ b/nova/tests/test_xenapi.py
@@ -358,7 +358,8 @@ class XenAPIVMTestCase(stubs.XenAPITestBase):
self.assertDictMatch(fake_diagnostics, expected)
def test_instance_snapshot_fails_with_no_primary_vdi(self):
- def create_bad_vbd(vm_ref, vdi_ref):
+ def create_bad_vbd(session, vm_ref, vdi_ref, userdevice,
+ vbd_type='disk', read_only=False, bootable=False):
vbd_rec = {'VM': vm_ref,
'VDI': vdi_ref,
'userdevice': 'fake',
@@ -367,7 +368,7 @@ class XenAPIVMTestCase(stubs.XenAPITestBase):
xenapi_fake.after_VBD_create(vbd_ref, vbd_rec)
return vbd_ref
- self.stubs.Set(xenapi_fake, 'create_vbd', create_bad_vbd)
+ self.stubs.Set(vm_utils, 'create_vbd', create_bad_vbd)
stubs.stubout_instance_snapshot(self.stubs)
# Stubbing out firewall driver as previous stub sets alters
# xml rpc result parsing