From 744dc910d8349c768ddea0294289a17882dff0c8 Mon Sep 17 00:00:00 2001 From: Shireesh Anjal <355479+anjalshireesh@users.noreply.github.com> Date: Sat, 24 Feb 2024 06:14:28 +0530 Subject: [PATCH] Do not validate deployment id from license if nil uuid (#4856) In some very rare cases the license can contain a nil uuid (00000000-0000-0000-0000-000000000000). Do not validate it against the cluster's deployment id during registration. --- cmd/subnet-utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/subnet-utils.go b/cmd/subnet-utils.go index 63a85622..ee280c0a 100644 --- a/cmd/subnet-utils.go +++ b/cmd/subnet-utils.go @@ -637,7 +637,7 @@ func validateAndSaveLic(lic, alias string, saveAPIKey bool) string { fatalIf(errDummy().Trace(), fmt.Sprintf("License has expired on %s", li.ExpiresAt)) } - if len(li.DeploymentID) > 0 && li.DeploymentID != getAdminInfo(alias).DeploymentID { + if len(li.DeploymentID) > 0 && li.DeploymentID != uuid.Nil.String() && li.DeploymentID != getAdminInfo(alias).DeploymentID { fatalIf(errDummy().Trace(), fmt.Sprintf("License is invalid for the deployment %s", alias)) }