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