コード例 #1
0
ファイル: inspector.py プロジェクト: stackhpc/ironic
 def __init__(self):
     if not client:
         raise exception.DriverLoadError(
             _('python-ironic-inspector-client Python module not found'))
コード例 #2
0
ファイル: test_driver_factory.py プロジェクト: mat128/ironic
 def _fake_init_driver_err(self, *args, **kwargs):
     kwargs['on_load_failure_callback'](None, FakeEp,
                                        exception.DriverLoadError(
                                            driver='aaa', reason='bbb'))
コード例 #3
0
ファイル: bios.py プロジェクト: Hellcatlk/ironic
 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"))