def require_driver_initialized(driver):
 if (not driver.initialized):
  driver_name = driver.__class__.__name__
  LOG.error(_LE('Volume driver %s not initialized'), driver_name)
  raise exception.DriverNotInitialized()
 else:
  log_unsupported_driver_warning(driver)

def require_driver_initialized ( driver ) : if ( not driver . initialized ) : driver_name = driver . __class__ . __name__ LOG . error ( _LE ( 'Volume driver %s not initialized' ) , driver_name ) raise exception . DriverNotInitialized ( ) else : log_unsupported_driver_warning ( driver )
verifies if driver is initialized if the driver is not initialized .