From 11b6baa1385c94f55038da5322d002bcd6283a10 Mon Sep 17 00:00:00 2001 From: Abhishek Kondur Date: Thu, 14 Sep 2023 17:02:53 +0400 Subject: [PATCH] set license validation err always --- pro/license.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pro/license.go b/pro/license.go index 4e25026ab..adfbf3042 100644 --- a/pro/license.go +++ b/pro/license.go @@ -9,11 +9,12 @@ import ( "encoding/json" "errors" "fmt" - "golang.org/x/exp/slog" "io" "net/http" "time" + "golang.org/x/exp/slog" + "github.com/gravitl/netmaker/database" "github.com/gravitl/netmaker/logic" "github.com/gravitl/netmaker/models" @@ -51,8 +52,8 @@ func ValidateLicense() (err error) { defer func() { if err != nil { err = fmt.Errorf("%w: %s", errValidation, err.Error()) - servercfg.ErrLicenseValidation = err } + servercfg.ErrLicenseValidation = err }() licenseKeyValue := servercfg.GetLicenseKey()