|
@@ -48,9 +48,9 @@ func AddLicenseHooks() {
|
|
// if license is not valid, server should terminate
|
|
// if license is not valid, server should terminate
|
|
func ValidateLicense() error {
|
|
func ValidateLicense() error {
|
|
licenseKeyValue := servercfg.GetLicenseKey()
|
|
licenseKeyValue := servercfg.GetLicenseKey()
|
|
- NetmakerTenantID := servercfg.GetNetmakerTenantID()
|
|
|
|
|
|
+ netmakerTenantID := servercfg.GetNetmakerTenantID()
|
|
logger.Log(0, "proceeding with Netmaker license validation...")
|
|
logger.Log(0, "proceeding with Netmaker license validation...")
|
|
- if len(licenseKeyValue) == 0 || len(NetmakerTenantID) == 0 {
|
|
|
|
|
|
+ if len(licenseKeyValue) == 0 || len(netmakerTenantID) == 0 {
|
|
logger.FatalLog0(errValidation.Error())
|
|
logger.FatalLog0(errValidation.Error())
|
|
}
|
|
}
|
|
|
|
|
|
@@ -65,7 +65,7 @@ func ValidateLicense() error {
|
|
}
|
|
}
|
|
|
|
|
|
licenseSecret := LicenseSecret{
|
|
licenseSecret := LicenseSecret{
|
|
- AssociatedID: NetmakerTenantID,
|
|
|
|
|
|
+ AssociatedID: netmakerTenantID,
|
|
Limits: getCurrentServerLimit(),
|
|
Limits: getCurrentServerLimit(),
|
|
}
|
|
}
|
|
|
|
|