From 7cbe9104d86ee33d16082da59ef733b4c81af026 Mon Sep 17 00:00:00 2001 From: Sean McGinnis Date: Fri, 17 May 2024 12:01:04 -0500 Subject: [PATCH] Fix License object marshalling issue Signed-off-by: Sean McGinnis --- redfish/license.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/redfish/license.go b/redfish/license.go index 1f2718a2..7639d07d 100644 --- a/redfish/license.go +++ b/redfish/license.go @@ -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 // AuthorizedDevices@odata.count AuthorizedDevicesCount int `json:"AuthorizedDevices@odata.count"` // TargetServices shall contain an array of links to resources of type Manager that represent the services where @@ -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