Skip to content

Commit

Permalink
Correct HostInterface "CredentialBootstrapping" type (#350)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
arossbell authored Jul 2, 2024
1 parent ef89746 commit 108735a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redfish/hostinterface.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ type HostInterface struct {
// CredentialBootstrapping shall contain settings for the Redfish Host Interface Specification-defined 'credential
// bootstrapping via IPMI commands' feature for this interface. This property shall be absent if credential
// bootstrapping is not supported by the service.
CredentialBootstrapping string
CredentialBootstrapping CredentialBootstrapping
// Description provides a description of this resource.
Description string
// ExternallyAccessible is used by external clients, and this property
Expand Down

0 comments on commit 108735a

Please sign in to comment.