Skip to content

Commit 9dc8830

Browse files
authored
Fix disable-telemetry flag to be a true boolean flag (#124)
Signed-off-by: Jussi Nummelin <[email protected]>
1 parent 27e1cc6 commit 9dc8830

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

cmd/flags.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,10 @@ var (
4444
TakesFile: true,
4545
}
4646

47-
analyticsFlag = &cli.StringFlag{
48-
Name: "--disable-telemetry",
49-
Hidden: true,
47+
analyticsFlag = &cli.BoolFlag{
48+
Name: "disable-telemetry",
49+
EnvVars: []string{"DISABLE_TELEMETRY"},
50+
Hidden: true,
5051
}
5152
)
5253

@@ -95,6 +96,7 @@ func displayCopyright(ctx *cli.Context) error {
9596

9697
func initAnalytics(ctx *cli.Context) error {
9798
if ctx.Bool("disable-telemetry") {
99+
log.Tracef("disabling telemetry")
98100
return nil
99101
}
100102

smoke-test/smoke.common.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ FOOTLOOSE_TEMPLATE=${FOOTLOOSE_TEMPLATE:-"footloose.yaml.tpl"}
22

33
export LINUX_IMAGE=${LINUX_IMAGE:-"quay.io/footloose/ubuntu18.04"}
44
export PRESERVE_CLUSTER=${PRESERVE_CLUSTER:-""}
5+
export DISABLE_TELEMETRY=true
56

67

78
function createCluster() {

0 commit comments

Comments
 (0)