From 9ff139e15ce56e56d46236f2c50e549d897b7208 Mon Sep 17 00:00:00 2001 From: gala-bsmith <168765258+gala-bsmith@users.noreply.github.com> Date: Thu, 14 Nov 2024 11:16:29 -0800 Subject: [PATCH] fix: ECS_FARGATE activating when anything is placed in the value. Instead only on true. --- pkg/config/env/environment.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/config/env/environment.go b/pkg/config/env/environment.go index 5fa7623794e1f..fba263f633d4e 100644 --- a/pkg/config/env/environment.go +++ b/pkg/config/env/environment.go @@ -62,7 +62,7 @@ func IsECS() bool { // IsECSFargate returns whether the Agent is running in ECS Fargate func IsECSFargate() bool { - return os.Getenv("ECS_FARGATE") != "" || os.Getenv("AWS_EXECUTION_ENV") == "AWS_ECS_FARGATE" + return os.Getenv("ECS_FARGATE") == "true" || os.Getenv("AWS_EXECUTION_ENV") == "AWS_ECS_FARGATE" } // IsHostProcAvailable returns whether host proc is available or not