mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-19 08:28:06 +02:00
fix(telemetry): respect CI kill switch in python daemon identity
This commit is contained in:
parent
db7757df32
commit
5e6b235979
2 changed files with 15 additions and 10 deletions
|
|
@ -27,7 +27,11 @@ def _telemetry_path(home_dir: Path | None = None) -> Path:
|
|||
|
||||
def _env_disables(env: Mapping[str, str] | None = None) -> bool:
|
||||
source = env or os.environ
|
||||
return bool(source.get("KTX_TELEMETRY_DISABLED") or source.get("DO_NOT_TRACK"))
|
||||
return bool(
|
||||
source.get("KTX_TELEMETRY_DISABLED")
|
||||
or source.get("DO_NOT_TRACK")
|
||||
or source.get("CI")
|
||||
)
|
||||
|
||||
|
||||
def _read_identity(path: Path) -> TelemetryIdentity:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue