Get discovered credentials
()
| 6289 | def _unit_name(service_name: str) -> str: |
| 6290 | unit = service_name.strip() |
| 6291 | if unit.endswith('.service'): |
| 6292 | unit = unit[:-8] |
| 6293 | return unit or service_name |
| 6294 | |
| 6295 | |
| 6296 | def _format_service_failure_message(service_name: str) -> str: |
| 6297 | unit = _unit_name(service_name) |
| 6298 | readable = unit.replace('_', ' ').replace('-', ' ').title() |
| 6299 | return f"Failed to start {readable} service. Review journalctl -u {unit} -f for details." |
| 6300 | |
| 6301 | |
| 6302 | def _wait_for_service_active(service_name: str, timeout: int = 30, poll_interval: int = 1) -> tuple[bool, str]: |
no test coverage detected