Skip to content

Commit 81bca12

Browse files
committed
fixup! feat: support licenses that require telemetry
1 parent b6e4c51 commit 81bca12

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

enterprise/coderd/coderd.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55
"crypto/ed25519"
66
"crypto/tls"
77
"crypto/x509"
8-
"fmt"
98
"net/http"
109
"sync"
1110
"time"
@@ -255,7 +254,13 @@ func (api *API) updateEntitlements(ctx context.Context) error {
255254
}
256255

257256
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
259264
}
260265

261266
entitlements.Experimental = api.DeploymentConfig.Experimental.Value || len(api.AGPL.Experiments) != 0

0 commit comments

Comments
 (0)