From 14e47e181d1a1c701907eccd31acbcd07189ba8a Mon Sep 17 00:00:00 2001 From: Noah Stride Date: Fri, 8 Nov 2024 12:20:59 +0000 Subject: [PATCH] Machine ID: TBOT_USE_PROXY_ADDR use "yes" vs "1" for consistency (#48667) * Prefer "yes" over "1" for historical consistency * Try and retrigger the CLA check with an empty commit --- lib/tbot/tbot.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tbot/tbot.go b/lib/tbot/tbot.go index 3813667829c7c..5aae9aa30e915 100644 --- a/lib/tbot/tbot.go +++ b/lib/tbot/tbot.go @@ -777,11 +777,11 @@ type proxyPingResponse struct { const useProxyAddrEnv = "TBOT_USE_PROXY_ADDR" // shouldUseProxyAddr returns true if the TBOT_USE_PROXY_ADDR environment -// variable is set to "1". More generally, this indicates that the user wishes +// variable is set to "yes". More generally, this indicates that the user wishes // for tbot to prefer using the proxy address that has been explicitly provided // by the user rather than the one fetched via a discovery process (e.g ping). func shouldUseProxyAddr() bool { - return os.Getenv(useProxyAddrEnv) == "1" + return os.Getenv(useProxyAddrEnv) == "yes" } // proxyWebAddr returns the address to use to connect to the proxy web port.