Skip to content

Commit

Permalink
Merge pull request #2577 from gravitl/hot_fix_license_err
Browse files Browse the repository at this point in the history
set license validation err always
  • Loading branch information
abhishek9686 authored Sep 14, 2023
2 parents 868b531 + 11b6baa commit c0d3a9e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pro/license.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit c0d3a9e

Please sign in to comment.