(data: Mapping[str, Any])
| 172 | |
| 173 | |
| 174 | def _build_ssh(data: Mapping[str, Any]) -> SSHConfig: |
| 175 | return SSHConfig( |
| 176 | host=str(data.get("host", "")), |
| 177 | port=int(data.get("port", 22)), |
| 178 | username=str(data.get("username", "root")), |
| 179 | password=str(data.get("password", "")), |
| 180 | timeout=int(data.get("timeout", 30)), |
| 181 | ) |
| 182 | |
| 183 | |
| 184 | def _build_runtime(raw: Mapping[str, Any]) -> RuntimeConfig: |
no test coverage detected