Repository navigation
Commit b7d6f4d
Uwe Schwaeke
fix(nova): always emit server image field, "" for boot-from-volume
The single-server GET only set response["image"] when image_id was non-NULL, so a
boot-from-volume server omitted the key entirely. Horizon's instance-detail view
reads server.image unconditionally, so novaclient raised "AttributeError: image"
and the page 500'd. /detail already emitted "" for that case, so the two handlers
had drifted.
Extract serverImageField(), shared by both handlers: an {id} object for an
image-booted server, "" for a boot-from-volume one — present either way, matching
upstream Nova.
Assisted-by: Claude:claude-opus-4-8
Signed-off-by: Uwe Schwaeke <uwe.schwaeke@sap.com>1 parent 0b7122f commit b7d6f4d
2 files changed
Lines changed: 37 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1619 | 1619 | | |
1620 | 1620 | | |
1621 | 1621 | | |
1622 | | - | |
1623 | | - | |
1624 | | - | |
1625 | | - | |
1626 | | - | |
| 1622 | + | |
1627 | 1623 | | |
1628 | 1624 | | |
1629 | 1625 | | |
| |||
1867 | 1863 | | |
1868 | 1864 | | |
1869 | 1865 | | |
| 1866 | + | |
| 1867 | + | |
| 1868 | + | |
| 1869 | + | |
| 1870 | + | |
| 1871 | + | |
| 1872 | + | |
| 1873 | + | |
| 1874 | + | |
| 1875 | + | |
| 1876 | + | |
| 1877 | + | |
1870 | 1878 | | |
1871 | 1879 | | |
1872 | 1880 | | |
| |||
1929 | 1937 | | |
1930 | 1938 | | |
1931 | 1939 | | |
1932 | | - | |
1933 | | - | |
1934 | | - | |
| 1940 | + | |
1935 | 1941 | | |
1936 | 1942 | | |
1937 | 1943 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
0 commit comments