File tree 1 file changed +7
-2
lines changed 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 5
5
"crypto/ed25519"
6
6
"crypto/tls"
7
7
"crypto/x509"
8
- "fmt"
9
8
"net/http"
10
9
"sync"
11
10
"time"
@@ -255,7 +254,13 @@ func (api *API) updateEntitlements(ctx context.Context) error {
255
254
}
256
255
257
256
if entitlements .RequireTelemetry && ! api .DeploymentConfig .Telemetry .Enable .Value {
258
- return xerrors .New ("telemetry disabled, but a license requires telemetry" )
257
+ // We can't fail because then the user couldn't remove the offending
258
+ // license w/o a restart.
259
+ entitlements .Errors = append (
260
+ entitlements .Errors , "License requires telemetry but telemetry is disabled" ,
261
+ )
262
+ api .Logger .Error (ctx , "license requires telemetry enabled" )
263
+ return nil
259
264
}
260
265
261
266
entitlements .Experimental = api .DeploymentConfig .Experimental .Value || len (api .AGPL .Experiments ) != 0
You can’t perform that action at this time.
0 commit comments