HostService response types are broken
csquire opened this issue · 0 comments
csquire commented
When running against Cloudstack 4.15 with the latest code, the cpuloadaverage
and hostha
fields in the response types within HostService have the wrong types causing the client to fail at parsing responses from the Cloudstack API.
The cpuloadaverage
field defaults to string but needs to be a float64 (missing handling of double in the mapType
function of generate.go).
The hostha
field defaults to string but needs to be a custom HostHAResponse type.
The cpuloadaverage
is easy to fix, but I don't immediately understand how the custom field type generation works in order to implement a fix for hostha
.