Commit ebbbda9
committed
feat: support numeric image IDs for snapshots
GetByNameAndArchitecture only works for named images.
Hetzner snapshots have no name — only a numeric ID.
If DISK_IMAGE is a numeric string, look up by ID directly
using Image.GetByID. Otherwise fall back to the existing
name+architecture lookup.
This allows users to boot DevPod workspaces from a
pre-baked Hetzner snapshot, skipping slow provisioning steps.1 parent 5af4afd commit ebbbda9
1 file changed
Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
147 | | - | |
148 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
149 | 159 | | |
150 | 160 | | |
151 | 161 | | |
| |||
0 commit comments