mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-04-28 11:59:29 +00:00
fix: resolve undefined variable refs in Hetzner billing retry path (#2340)
PR #2335 fixed this bug in digitalocean.ts, gcp.ts, and aws.ts but missed hetzner.ts. The billing retry block assigned serverId/serverIp to undefined local variables (hetznerServerId, hetznerServerIp) instead of _state.serverId / _state.serverIp, so the retry always threw "Server creation failed" even when the API call succeeded. This also adds the missing saveVmConnection() call in the retry success path so the VM is recorded in spawn history. Agent: code-health Co-authored-by: B <6723574+louisgv@users.noreply.github.com> Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
bf03d9e593
commit
48af1c3459
2 changed files with 15 additions and 4 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@openrouter/spawn",
|
||||
"version": "0.15.17",
|
||||
"version": "0.15.18",
|
||||
"type": "module",
|
||||
"bin": {
|
||||
"spawn": "cli.js"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue