mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
Default to Y when asking to opt in for telemetry (#5270)
This is still aligned with our Data Collection Policy (https://developers.redhat.com/article/tool-data-collection) Telemetry is not enabled by default. Just the preselected answer is now Y instead of N.
This commit is contained in:
@@ -54,7 +54,7 @@ func GenericRun(o Runnable, cmd *cobra.Command, args []string) {
|
||||
klog.V(4).Infof("Skipping telemetry question due to %s=%t\n", segment.DisableTelemetryEnv, disableTelemetry)
|
||||
} else {
|
||||
var consentTelemetry bool
|
||||
prompt := &survey.Confirm{Message: "Help odo improve by allowing it to collect usage data. Read about our privacy statement: https://developers.redhat.com/article/tool-data-collection. You can change your preference later by changing the ConsentTelemetry preference.", Default: false}
|
||||
prompt := &survey.Confirm{Message: "Help odo improve by allowing it to collect usage data. Read about our privacy statement: https://developers.redhat.com/article/tool-data-collection. You can change your preference later by changing the ConsentTelemetry preference.", Default: true}
|
||||
err = survey.AskOne(prompt, &consentTelemetry, nil)
|
||||
ui.HandleError(err)
|
||||
if err == nil {
|
||||
|
||||
Reference in New Issue
Block a user