mirror of
https://github.com/coder/coder.git
synced 2025-07-18 14:17:22 +00:00
fix: make telemetry source a string not an enum (#7390)
This commit is contained in:
@ -233,8 +233,8 @@ func (r *remoteReporter) deployment() error {
|
|||||||
|
|
||||||
// Tracks where Coder was installed from!
|
// Tracks where Coder was installed from!
|
||||||
installSource := os.Getenv("CODER_TELEMETRY_INSTALL_SOURCE")
|
installSource := os.Getenv("CODER_TELEMETRY_INSTALL_SOURCE")
|
||||||
if installSource != "" && installSource != "aws_marketplace" && installSource != "fly.io" {
|
if len(installSource) > 64 {
|
||||||
return xerrors.Errorf("invalid installce source: %s", installSource)
|
return xerrors.Errorf("install source must be <=64 chars: %s", installSource)
|
||||||
}
|
}
|
||||||
|
|
||||||
data, err := json.Marshal(&Deployment{
|
data, err := json.Marshal(&Deployment{
|
||||||
|
Reference in New Issue
Block a user