mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-04-28 11:59:29 +00:00
refactor: remove stale Packer comment in hetzner.ts (#2878)
The reference to "Hetzner Packer" was removed in #2869. Updated the comment to accurately describe the snapshot naming convention. -- qa/code-quality Co-authored-by: spawn-qa-bot <qa@openrouter.ai> Co-authored-by: L <6723574+louisgv@users.noreply.github.com>
This commit is contained in:
parent
76afe9546b
commit
054a740e5a
1 changed files with 1 additions and 1 deletions
|
|
@ -484,7 +484,7 @@ export async function findSpawnSnapshot(agentName: string): Promise<string | nul
|
|||
const text = await hetznerApi("GET", "/images?type=snapshot&per_page=100", undefined, 1);
|
||||
const data = parseJsonObj(text);
|
||||
const allImages = toObjectArray(data?.images);
|
||||
// Hetzner Packer sets snapshot_name → description field in the API
|
||||
// Snapshots are named `spawn-{agent}-*` and stored in the description field
|
||||
const images = allImages.filter((img) => isString(img.description) && img.description.startsWith(prefix));
|
||||
if (images.length === 0) {
|
||||
return null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue