Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged

Conversation

arossbell
Copy link
Contributor

@arossbell arossbell commented Jul 1, 2024

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.

Attempted unmarshal of Hostinterface 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.
Copy link
Owner

@stmcginnis stmcginnis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I did check the schema and you are correct, this should be the object. 🎉

@stmcginnis stmcginnis merged commit 108735a into stmcginnis:main Jul 2, 2024
2 checks passed
@arossbell arossbell deleted the HostInterface/CredentialBootstrapping branch July 2, 2024 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants