Resolve a dotted variable path like 'api.endpoint.port'.
(var_path: str, variables: dict[str, Any])
| 937 | |
| 938 | |
| 939 | def _resolve_path(var_path: str, variables: dict[str, Any]) -> Any: |
| 940 | """Resolve a dotted variable path like 'api.endpoint.port'.""" |
| 941 | parts = var_path.split(".") |
| 942 | current: Any = variables |
| 943 | for part in parts: |
| 944 | if isinstance(current, dict) and part in current: |
| 945 | current = current[part] |
| 946 | else: |
| 947 | return None |
| 948 | return current |
| 949 | |
| 950 | |
| 951 | # ── Callback Helpers ────────────────────────────────────────────────────── |
no outgoing calls
no test coverage detected