-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix License object marshalling issue
Signed-off-by: Sean McGinnis <[email protected]>
- Loading branch information
1 parent
177e80f
commit 7cbe910
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|