(self)
| 1223 | @API.perm('w') |
| 1224 | @API.expose |
| 1225 | def create_mgr_pool(self) -> None: |
| 1226 | self.log.info("creating mgr pool") |
| 1227 | |
| 1228 | ov = self.get_module_option_ex('devicehealth', 'pool_name', 'device_health_metrics') |
| 1229 | devhealth = cast(str, ov) |
| 1230 | if devhealth is not None and self.pool_exists(devhealth): |
| 1231 | self.log.debug("reusing devicehealth pool") |
| 1232 | self.rename_pool(devhealth, self.MGR_POOL_NAME) |
| 1233 | self.appify_pool(self.MGR_POOL_NAME, 'mgr') |
| 1234 | else: |
| 1235 | self.log.debug("creating new mgr pool") |
| 1236 | self.create_pool(self.MGR_POOL_NAME) |
| 1237 | self.appify_pool(self.MGR_POOL_NAME, 'mgr') |
| 1238 | |
| 1239 | def create_skeleton_schema(self, db: sqlite3.Connection) -> None: |
| 1240 | SQL = [ |
no test coverage detected