Skip to content

Commit 9b33a4d

Browse files
committed
Disable odo telemetry using ENV_VARIABLE
Signed-off-by: Denis Golovin dgolovin@redhat.com
1 parent d398e94 commit 9b33a4d

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

config/preference.yaml

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/odo.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -763,8 +763,8 @@ export class OdoImpl implements Odo {
763763

764764
public createEnv(): {} {
765765
const env = {...process.env };
766-
env.GLOBALODOCONFIG = path.resolve(__dirname,'..', '..', 'config', 'preference.yaml');
767-
return env;
766+
env.ODO_DISABLE_TELEMETRY = "true";
767+
return env;
768768
}
769769

770770
public async executeInTerminal(command: CommandText, cwd: string = process.cwd(), name = 'OpenShift'): Promise<void> {

0 commit comments

Comments
 (0)