def disk_copy(session, dc_ref, src_file, dst_file):
 LOG.debug('Copying virtual disk from %(src)s to %(dst)s.', {'src': src_file, 'dst': dst_file})
 copy_disk_task = session._call_method(session.vim, 'CopyVirtualDisk_Task', session.vim.service_content.virtualDiskManager, sourceName=str(src_file), sourceDatacenter=dc_ref, destName=str(dst_file), destDatacenter=dc_ref, force=False)
 session._wait_for_task(copy_disk_task)
 LOG.info(_LI('Copied virtual disk from %(src)s to %(dst)s.'), {'src': src_file, 'dst': dst_file})

def disk_copy ( session , dc_ref , src_file , dst_file ) : LOG . debug ( 'Copying virtual disk from %(src)s to %(dst)s.' , { 'src' : src_file , 'dst' : dst_file } ) copy_disk_task = session . _call_method ( session . vim , 'CopyVirtualDisk_Task' , session . vim . service_content . virtualDiskManager , sourceName = str ( src_file ) , sourceDatacenter = dc_ref , destName = str ( dst_file ) , destDatacenter = dc_ref , force = False ) session . _wait_for_task ( copy_disk_task ) LOG . info ( _LI ( 'Copied virtual disk from %(src)s to %(dst)s.' ) , { 'src' : src_file , 'dst' : dst_file } )
copies the source virtual disk to the destination .