You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Compute V2: Image reference is hidden Server JSON serialization #1618
I think in newer microversions, the image structure has changed. Try to make sure you are using API version 2.1 without a microversion and see if that helps. If it does, we'll have to look into amending the server result for a newer image format.
Unmarshalling works fine for me, my use case is to serve directly the results through a webservice by re-serialize them in JSON but the custom Mashaller is not present.
Hi @jtopjian ! I've encountered on the same issue as well and I am wondering why did you set an image map to "-" instruct, cause when I changed it to the "image", it works fine. And is there an option to serve service results through the Allpages method with image info as well?
Activity
jtopjian commentedon Jun 11, 2019
The image reference is built here:
gophercloud/openstack/compute/v2/servers/results.go
Lines 239 to 247 in 46d131b
I think in newer microversions, the image structure has changed. Try to make sure you are using API version 2.1 without a microversion and see if that helps. If it does, we'll have to look into amending the server result for a newer image format.
artpej commentedon Jun 11, 2019
Unmarshalling works fine for me, my use case is to serve directly the results through a webservice by re-serialize them in JSON but the custom Mashaller is not present.
jtopjian commentedon Jun 11, 2019
You should be able to do something like:
artpej commentedon Jun 11, 2019
Yes,
ExtractIntoand̀ExtractServersIntosaved me today 😉.Is there any plan to also provide Marshaling of result resources?
Whatever, many thanks @jtopjian for your help.
jtopjian commentedon Jun 11, 2019
Not at this time. If you could explain a detailed use-case of why it would be useful, we can leave it here as a feature request.
apuzyrevsky commentedon May 21, 2020
Hi @jtopjian ! I've encountered on the same issue as well and I am wondering why did you set an image map to "-" instruct, cause when I changed it to the "image", it works fine. And is there an option to serve service results through the Allpages method with image info as well?