Skip to content

Commit

Permalink
Do not fail if deployment id not found in license (minio#4767)
Browse files Browse the repository at this point in the history
SUBNET is being enhanced to generate account-level licenses instead of
deployment-level. So newer licenses may not contain the deployment id.

So validate the deployment id against the cluster only if present in the
license.
  • Loading branch information
anjalshireesh committed Nov 20, 2023
1 parent d8342b6 commit 937b346
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/subnet-utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ func validateAndSaveLic(lic, alias string, saveAPIKey bool) string {
fatalIf(errDummy().Trace(), fmt.Sprintf("License has expired on %s", li.ExpiresAt))
}

if li.DeploymentID != getAdminInfo(alias).DeploymentID {
if len(li.DeploymentID) > 0 && li.DeploymentID != getAdminInfo(alias).DeploymentID {
fatalIf(errDummy().Trace(), fmt.Sprintf("License is invalid for the deployment %s", alias))
}

Expand Down

0 comments on commit 937b346

Please sign in to comment.