Skip to content

Commit 4703b44

Browse files
author
Johan Steyn
authored
CLOUDP-120870: [Atlas CLI] Telemetry - Not to be implemented in mongocli (#1150)
* CLOUDP-120870: [Atlas CLI] Telemetry - Not to be implemented in mongocli
1 parent f013854 commit 4703b44

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

internal/config/profile.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,9 @@ func (p *Profile) TelemetryEnabled() bool {
462462
// SetTelemetryEnabled sets the telemetry enabled value.
463463
func SetTelemetryEnabled(v bool) { Default().SetTelemetryEnabled(v) }
464464
func (p *Profile) SetTelemetryEnabled(v bool) {
465-
SetGlobal(telemetryEnabled, v)
465+
if ToolName == AtlasCLI {
466+
SetGlobal(telemetryEnabled, v)
467+
}
466468
}
467469

468470
// Output get configured output format.

0 commit comments

Comments
 (0)