Commit c0c6af4
Fix set_space_volume / delete_space_volume return types (#4061)
* fix: parse Space volumes mutation response or fetch runtime
PUT/DELETE /spaces/.../volumes may return JSON without a top-level stage.
HfApi.set_space_volumes and delete_space_volumes now fall back to
get_space_runtime when the body is empty or not a full runtime payload.
Made-with: Cursor
* refactor: parse SpaceRuntime from mutation response with try/except fallback
Made-with: Cursor
* test: collapse Space volumes mutation tests into one case
Made-with: Cursor
* test: keep single Space volumes regression (non-runtime JSON payload)
Made-with: Cursor
* just return None
---------
Co-authored-by: Lucain Pouget <lucainp@gmail.com>1 parent 6d1a377 commit c0c6af4
1 file changed
Lines changed: 2 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8165 | 8165 | | |
8166 | 8166 | | |
8167 | 8167 | | |
8168 | | - | |
| 8168 | + | |
8169 | 8169 | | |
8170 | 8170 | | |
8171 | 8171 | | |
| |||
8184 | 8184 | | |
8185 | 8185 | | |
8186 | 8186 | | |
8187 | | - | |
8188 | | - | |
8189 | | - | |
8190 | 8187 | | |
8191 | 8188 | | |
8192 | 8189 | | |
| |||
8211 | 8208 | | |
8212 | 8209 | | |
8213 | 8210 | | |
8214 | | - | |
8215 | 8211 | | |
8216 | 8212 | | |
8217 | 8213 | | |
8218 | 8214 | | |
8219 | 8215 | | |
8220 | 8216 | | |
8221 | 8217 | | |
8222 | | - | |
| 8218 | + | |
8223 | 8219 | | |
8224 | 8220 | | |
8225 | 8221 | | |
| |||
8231 | 8227 | | |
8232 | 8228 | | |
8233 | 8229 | | |
8234 | | - | |
8235 | | - | |
8236 | | - | |
8237 | 8230 | | |
8238 | 8231 | | |
8239 | 8232 | | |
| |||
8250 | 8243 | | |
8251 | 8244 | | |
8252 | 8245 | | |
8253 | | - | |
8254 | 8246 | | |
8255 | 8247 | | |
8256 | 8248 | | |
| |||
0 commit comments