stmcginnis / gofish

Gofish is a Golang client library for DMTF Redfish and SNIA Swordfish interaction.
BSD 3-Clause "New" or "Revised" License
204 stars 109 forks source link

r/hostinterface.go: Correct "CredentialBootstrapping" type #350

Closed arossbell closed 3 weeks ago

arossbell commented 3 weeks ago

Attempted use of Hostinterface (ie redfish.GetHostInterface(c, uri)) led to error:

json: cannot unmarshal object into Go struct field .CredentialBootstrapping of type string

The CredentialBootstrapping variable may have intended to be of type "CredentialBootstrapping" (struct defined earlier), which was not referenced elsewhere in gofish.

This commit resolves the unmarshal issue.