apache / apache/cloudstack-go

Bug: listHostsMetrics response mapping mismatch (hostmetrics --> host) causes null parsing.

オープン
#136 コメント 1 件 リアクション 0 件 担当者 0 名 @Nehanth67 が担当を希望しています GitHub で見る
主要言語
Go
スター
39
フォーク
47
PR マージ指標
30日以内にマージされた PR はありません

説明

The CloudStack backend response for listHostsMetrics has changed its JSON structure, but the cloudstack-go wrapper is still parsing the old field (hostmetrics).
This results in host metrics being returned as null in the Go SDK response.

Affected Component

API: listHostsMetrics (command)

Client: github.com/apache/cloudstack-go/v2

Version tested: v2.19.0 (and likely later)

Key change:
The backend now returns metrics under the field host, not hostmetrics.
Go SDK should correctly deserialize host metrics into a non-nil slice.

Actual SDK Behavior currently
{
"count": 3,
"host": null
}

Please rectify.

Image

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。