Summary
cmd/compute.cloudserver.go manually unmarshals response.RawBody into map[string]interface{} to extract the resource ID because the SDK's typed response struct does not expose it. This breaks silently if the API response shape changes.
Fix
Either update the SDK to expose the ID in its typed response, or — if the SDK cannot be changed — add a test that fails if the JSON structure changes unexpectedly.
Severity
Medium — should be fixed in the near term.
Summary
cmd/compute.cloudserver.gomanually unmarshalsresponse.RawBodyintomap[string]interface{}to extract the resource ID because the SDK's typed response struct does not expose it. This breaks silently if the API response shape changes.Fix
Either update the SDK to expose the ID in its typed response, or — if the SDK cannot be changed — add a test that fails if the JSON structure changes unexpectedly.
Severity
Medium — should be fixed in the near term.