def __init__(self): if not client: raise exception.DriverLoadError( _('python-ironic-inspector-client Python module not found'))
def _fake_init_driver_err(self, *args, **kwargs): kwargs['on_load_failure_callback'](None, FakeEp, exception.DriverLoadError( driver='aaa', reason='bbb'))
def __init__(self): super(DracWSManBIOS, self).__init__() if drac_exceptions is None: raise exception.DriverLoadError( driver='idrac', reason=_("Unable to import dracclient.exceptions library"))
def __init__(self): super(RedfishRAID, self).__init__() if sushy is None: raise exception.DriverLoadError( driver='redfish', reason=_("Unable to import the sushy library"))