Use subnet package in pkg for license validation (#3156)

This commit is contained in:
Shireesh Anjal
2023-12-29 23:42:27 +05:30
committed by GitHub
parent 239b31748a
commit 27e3b82223
3 changed files with 15 additions and 47 deletions

View File

@@ -356,7 +356,7 @@ func GetSubnetInfoResponse(session *models.Principal, params subnetApi.SubnetInf
return nil, ErrorWithContext(ctx, ErrSubnetLicenseNotFound)
}
licenseInfo, err := subnet.ParseLicense(client, seededLicense)
licenseInfo, err := getLicenseInfo(*client.Client, seededLicense)
if err != nil {
return nil, ErrorWithContext(ctx, err)
}