mirror of
https://github.com/minio/minio.git
synced 2025-04-20 02:27:50 -04:00
Read new key license_v2 from SUBNET response (#18669)
SUBNET now has a v2 of license that is returned in the new key `license_v2`. mc will start reading and storing the same. (The old key `license` is deprecated but is still available in SUBNET response to ensure that the current released version of minio doesn't break)
This commit is contained in:
parent
6acf038a84
commit
7680e5f81d
@ -89,7 +89,7 @@ func performLicenseUpdate(ctx context.Context, objectAPI ObjectLayer) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
r := gjson.Parse(resp).Get("license")
|
r := gjson.Parse(resp).Get("license_v2")
|
||||||
if r.Index == 0 {
|
if r.Index == 0 {
|
||||||
logger.LogIf(ctx, fmt.Errorf("license not found in response from %s", url))
|
logger.LogIf(ctx, fmt.Errorf("license not found in response from %s", url))
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user