From 7680e5f81dbbd4cd9f54ebf6abfe23b5d9f7f839 Mon Sep 17 00:00:00 2001 From: Shireesh Anjal <355479+anjalshireesh@users.noreply.github.com> Date: Mon, 18 Dec 2023 21:51:44 +0530 Subject: [PATCH] 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) --- cmd/license-update.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/license-update.go b/cmd/license-update.go index a70fbcc5c..a14f17fe3 100644 --- a/cmd/license-update.go +++ b/cmd/license-update.go @@ -89,7 +89,7 @@ func performLicenseUpdate(ctx context.Context, objectAPI ObjectLayer) { return } - r := gjson.Parse(resp).Get("license") + r := gjson.Parse(resp).Get("license_v2") if r.Index == 0 { logger.LogIf(ctx, fmt.Errorf("license not found in response from %s", url)) return