def move_disks(session, instance, disk_info):
 imported_vhds = session.call_plugin_serialized('migration', 'move_vhds_into_sr', instance_uuid=instance['uuid'], sr_path=get_sr_path(session), uuid_stack=_make_uuid_stack())
 scan_default_sr(session)
 root_uuid = imported_vhds['root']['uuid']
 set_vdi_name(session, root_uuid, instance['name'], 'root')
 root_vdi_ref = session.call_xenapi('VDI.get_by_uuid', root_uuid)
 return {'uuid': root_uuid, 'ref': root_vdi_ref}

def move_disks ( session , instance , disk_info ) : imported_vhds = session . call_plugin_serialized ( 'migration' , 'move_vhds_into_sr' , instance_uuid = instance [ 'uuid' ] , sr_path = get_sr_path ( session ) , uuid_stack = _make_uuid_stack ( ) ) scan_default_sr ( session ) root_uuid = imported_vhds [ 'root' ] [ 'uuid' ] set_vdi_name ( session , root_uuid , instance [ 'name' ] , 'root' ) root_vdi_ref = session . call_xenapi ( 'VDI.get_by_uuid' , root_uuid ) return { 'uuid' : root_uuid , 'ref' : root_vdi_ref }
move and possibly link vhds via the xapi plugin .