From 857bc4a752ed67643662592328b6edb078e19803 Mon Sep 17 00:00:00 2001 From: Denton Gentry Date: Mon, 14 Jun 2021 14:52:57 -0700 Subject: [PATCH] hostinfo: capitalization of AWS Missed one comment from https://github.com/tailscale/tailscale/pull/1868 should be isAWSLambda not isAwsLambda Signed-off-by: Denton Gentry --- control/controlclient/hostinfo_linux.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/control/controlclient/hostinfo_linux.go b/control/controlclient/hostinfo_linux.go index 6a0c31dde..4fbfb07e5 100644 --- a/control/controlclient/hostinfo_linux.go +++ b/control/controlclient/hostinfo_linux.go @@ -62,7 +62,7 @@ func osVersionLinux() string { if inKnative() { attrBuf.WriteString("; env=kn") } - if inAwsLambda() { + if inAWSLambda() { attrBuf.WriteString("; env=lm") } if inHerokuDyno() { @@ -131,7 +131,7 @@ func inKnative() bool { return false } -func inAwsLambda() bool { +func inAWSLambda() bool { // https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html if os.Getenv("AWS_LAMBDA_FUNCTION_NAME") != "" && os.Getenv("AWS_LAMBDA_FUNCTION_VERSION") != "" &&