mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-04-28 11:59:29 +00:00
Prevent silent failures when cloud API responses don't contain expected server/instance IDs or IPs. Without these checks, scripts would continue with empty variables, leading to cryptic failures downstream (e.g., "ssh root@" or API calls with empty IDs). Changes: - fly: Check FLY_MACHINE_ID after extraction, fail fast with clear error - ovh: Check OVH_INSTANCE_ID after extraction, fail fast with clear error - hetzner: Check HETZNER_SERVER_ID and HETZNER_SERVER_IP (+ null check for jq) - digitalocean: Check DO_DROPLET_ID after extraction, fail fast with clear error Impact: Improves reliability by catching API response parsing failures immediately rather than propagating empty values to SSH/API calls. Agent: code-health Co-authored-by: spawn-bot <bot@openrouter.ai> Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| common.sh | ||