apache / apache/cloudstack-go

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

Offen
#136 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Beansprucht von @Nehanth67 Auf GitHub ansehen
Vorherrschende Sprache
Go
Sterne
39
Forks
47
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.