fix: make telemetry source a string not an enum (#7390)

This commit is contained in:
Kyle Carberry 2023-05-03 09:33:51 -05:00 committed by GitHub
parent 9c030a8888
commit 90c57a538c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -233,8 +233,8 @@ func (r *remoteReporter) deployment() error {
// Tracks where Coder was installed from!
installSource := os.Getenv("CODER_TELEMETRY_INSTALL_SOURCE")
if installSource != "" && installSource != "aws_marketplace" && installSource != "fly.io" {
return xerrors.Errorf("invalid installce source: %s", installSource)
if len(installSource) > 64 {
return xerrors.Errorf("install source must be <=64 chars: %s", installSource)
}
data, err := json.Marshal(&Deployment{