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 <dgentry@tailscale.com>
pull/2144/head
Denton Gentry 3 years ago committed by Denton Gentry
parent 4b71291cdb
commit 857bc4a752

@ -62,7 +62,7 @@ func osVersionLinux() string {
if inKnative() { if inKnative() {
attrBuf.WriteString("; env=kn") attrBuf.WriteString("; env=kn")
} }
if inAwsLambda() { if inAWSLambda() {
attrBuf.WriteString("; env=lm") attrBuf.WriteString("; env=lm")
} }
if inHerokuDyno() { if inHerokuDyno() {
@ -131,7 +131,7 @@ func inKnative() bool {
return false return false
} }
func inAwsLambda() bool { func inAWSLambda() bool {
// https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html // https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html
if os.Getenv("AWS_LAMBDA_FUNCTION_NAME") != "" && if os.Getenv("AWS_LAMBDA_FUNCTION_NAME") != "" &&
os.Getenv("AWS_LAMBDA_FUNCTION_VERSION") != "" && os.Getenv("AWS_LAMBDA_FUNCTION_VERSION") != "" &&

Loading…
Cancel
Save