Skip to content

Commit

Permalink
Fix License object marshalling issue
Browse files Browse the repository at this point in the history
Signed-off-by: Sean McGinnis <[email protected]>
  • Loading branch information
stmcginnis committed May 17, 2024
1 parent 177e80f commit 7cbe910
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions redfish/license.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ func (license *License) UnmarshalJSON(b []byte) error {
// provide this property when installing a license to apply the license to specific devices. If not provided when
// installing a license, the service may determine the devices to which the license applies. This property shall
// not be present if the AuthorizationScope property contains the value 'Service'.
AuthorizedDevices []string
AuthorizedDevices common.Links
// [email protected]
AuthorizedDevicesCount int `json:"[email protected]"`
// TargetServices shall contain an array of links to resources of type Manager that represent the services where
Expand All @@ -167,7 +167,7 @@ func (license *License) UnmarshalJSON(b []byte) error {
*license = License(t.temp)

// Extract the links to other entities for later
license.AuthorizedDevices = t.Links.AuthorizedDevices
license.AuthorizedDevices = t.Links.AuthorizedDevices.ToStrings()
license.AuthorizedDevicesCount = t.Links.AuthorizedDevicesCount
license.targetServices = t.Links.TargetServices.ToStrings()
license.TargetServicesCount = t.Links.TargetServicesCount
Expand Down

0 comments on commit 7cbe910

Please sign in to comment.