From 3d9ae83b4e23ccbf05b0a49283d488698eace9e6 Mon Sep 17 00:00:00 2001 From: Sebastian Choren Date: Mon, 7 Oct 2024 18:54:39 -0300 Subject: [PATCH] fix(agent): use correct environment id when starting manually (#4041) --- agent/runner/runner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/runner/runner.go b/agent/runner/runner.go index 2e62fdcde8..420381758b 100644 --- a/agent/runner/runner.go +++ b/agent/runner/runner.go @@ -82,7 +82,7 @@ func (s *Runner) onStartAgent(ctx context.Context, cfg config.Config) { return } - err = s.StartAgent(ctx, cfg, agentToken, "") + err = s.StartAgent(ctx, cfg, agentToken, cfg.EnvironmentID) if err != nil { s.ui.Error(err.Error()) }