Skip to content

Commit 3928cf6

Browse files
Fix bug when checking if PLUGIN test is enabled (#1889)
1 parent 6c8e63f commit 3928cf6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

integration_test/agents/agents.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1042,6 +1042,6 @@ func GetOtelConfigPath(imageSpec string) string {
10421042

10431043
func IsOpsAgentUAPPlugin() bool {
10441044
// ok is true when the env variable is preset in the environment.
1045-
_, ok := os.LookupEnv("IS_OPS_AGENT_UAP_PLUGIN")
1046-
return ok
1045+
value, ok := os.LookupEnv("IS_OPS_AGENT_UAP_PLUGIN")
1046+
return ok && value != ""
10471047
}

0 commit comments

Comments
 (0)