Skip to content

Commit e025904

Browse files
committed
remove STS_SITE
Signed-off-by: Andrea Terzolo <andreaterzolo3@gmail.com>
1 parent a2752df commit e025904

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

config/config.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -424,9 +424,6 @@ func mergeEnvironmentVariables(c *AgentConfig) *AgentConfig {
424424
log.Infof("overriding API endpoint from env")
425425
c.APIEndpoints[0].Endpoint = u
426426
}
427-
if site := os.Getenv("STS_SITE"); site != "" {
428-
log.Infof("Using 'process_dd_url' (%s) and ignoring 'site' (%s)", v, site)
429-
}
430427
log.Infof("Overriding process api endpoint with environment variable `STS_PROCESS_AGENT_URL`: %s", u)
431428
}
432429

config/config_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,6 @@ func TestEnvSiteConfig(t *testing.T) {
676676
"burrito.com",
677677
},
678678
} {
679-
// Fake the os.Setenv("STS_SITE", tc.site)
680679
os.Setenv("STS_PROCESS_AGENT_URL", tc.stsURL)
681680

682681
agentConfig, err := NewAgentConfig(&YamlAgentConfig{})

0 commit comments

Comments
 (0)