コード例 #1
0
 def create_bad_vbd(vm_ref, vdi_ref):
     vbd_rec = {'VM': vm_ref,
        'VDI': vdi_ref,
        'userdevice': 'fake',
        'currently_attached': False}
     vbd_ref = xenapi_fake._create_object('VBD', vbd_rec)
     xenapi_fake.after_VBD_create(vbd_ref, vbd_rec)
     return vbd_ref
コード例 #2
0
 def create_bad_vbd(vm_ref, vdi_ref):
     vbd_rec = {"VM": vm_ref, "VDI": vdi_ref, "userdevice": "fake", "currently_attached": False}
     vbd_ref = xenapi_fake._create_object("VBD", vbd_rec)
     xenapi_fake.after_VBD_create(vbd_ref, vbd_rec)
     return vbd_ref