File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 5
5
"io"
6
6
"log"
7
7
"net/http"
8
- "slices"
9
8
"time"
10
9
11
10
"github.com/avast/retry-go/v4"
@@ -23,12 +22,11 @@ const (
23
22
// the license or reading the GCP project id
24
23
func VerifyLicense (config models.LicenseConfiguration ) models.LicenseValidation {
25
24
if config .LicenseKey == "" {
26
- projectId , err := GetProjectId ()
27
- isWhitelisted := slices .Contains (MarbleSaasProjectIds , projectId )
28
- if config .KillIfReadLicenseError && (err != nil || ! isWhitelisted ) {
25
+ isMarbleSaasProject := IsMarbleSaasProject ()
26
+ if config .KillIfReadLicenseError && ! isMarbleSaasProject {
29
27
log .Fatalln ("License key or project id not found, exiting" )
30
28
}
31
- if isWhitelisted {
29
+ if isMarbleSaasProject {
32
30
fullLicense := models .NewFullLicense ()
33
31
fullLicense .IsManagedMarble = true
34
32
return fullLicense
You can’t perform that action at this time.
0 commit comments