def load_compute_driver(virtapi, compute_driver=None):
 if (not compute_driver):
  compute_driver = CONF.compute_driver
 if (not compute_driver):
  LOG.error(_LE('Compute driver option required, but not specified'))
  sys.exit(1)
 LOG.info(_LI("Loading compute driver '%s'"), compute_driver)
 try:
  driver = importutils.import_object(('nova.virt.%s' % compute_driver), virtapi)
  return utils.check_isinstance(driver, ComputeDriver)
 except ImportError:
  LOG.exception(_LE('Unable to load the virtualization driver'))
  sys.exit(1)

def load_compute_driver ( virtapi , compute_driver = None ) : if ( not compute_driver ) : compute_driver = CONF . compute_driver if ( not compute_driver ) : LOG . error ( _LE ( 'Compute driver option required, but not specified' ) ) sys . exit ( 1 ) LOG . info ( _LI ( "Loading compute driver '%s'" ) , compute_driver ) try : driver = importutils . import_object ( ( 'nova.virt.%s' % compute_driver ) , virtapi ) return utils . check_isinstance ( driver , ComputeDriver ) except ImportError : LOG . exception ( _LE ( 'Unable to load the virtualization driver' ) ) sys . exit ( 1 )
load a compute driver module .