(self)
| 105 | return [] |
| 106 | |
| 107 | def _collect_hosts(self) -> List[Dict[str, Any]]: |
| 108 | if not self.db: |
| 109 | return [] |
| 110 | try: |
| 111 | return self.db.get_all_hosts() |
| 112 | except Exception as exc: |
| 113 | logger.error(f"Failed to read hosts: {exc}") |
| 114 | return [] |
| 115 | |
| 116 | # ------------------------------------------------------------------ |
| 117 | # CIS |
no test coverage detected