(self)
| 95 | return oob_details |
| 96 | |
| 97 | def init_system(self) -> None: |
| 98 | try: |
| 99 | oob_details = self.fetch_oob_details() |
| 100 | self.username = oob_details["username"] |
| 101 | self.password = oob_details["password"] |
| 102 | except HTTPError: |
| 103 | self.log.warning("No oob details could be loaded, exiting...") |
| 104 | raise SystemExit(1) |
| 105 | try: |
| 106 | vendor = self.config.get("system", {}).get("vendor", "generic") |
| 107 | system_cls = get_system_class(vendor) |
| 108 | self.system = system_cls( |
| 109 | host=oob_details["host"], |
| 110 | port=oob_details["port"], |
| 111 | username=oob_details["username"], |
| 112 | password=oob_details["password"], |
| 113 | config=self.config, |
| 114 | ) |
| 115 | self.system.start() |
| 116 | except RuntimeError: |
| 117 | self.log.error("Can't initialize the redfish system.") |
| 118 | raise |
| 119 | |
| 120 | def init_reporter(self) -> None: |
| 121 | try: |
no test coverage detected