From b287aa335df4cd450e81df63ba391f5897cb056c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Pa=C3=9F?= <22845248+mpass99@users.noreply.github.com> Date: Wed, 3 Aug 2022 12:25:49 +0200 Subject: [PATCH] Monitor environment id also for deletions. --- internal/runner/abstract_manager.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/runner/abstract_manager.go b/internal/runner/abstract_manager.go index 03611be..e3fd209 100644 --- a/internal/runner/abstract_manager.go +++ b/internal/runner/abstract_manager.go @@ -30,8 +30,8 @@ func NewAbstractManager() *AbstractManager { } // MonitorRunnersEnvironmentID passes the id of the environment e into the monitoring Point p. -func MonitorRunnersEnvironmentID(p *write.Point, e Runner, isDeletion bool) { - if !isDeletion && e != nil { +func MonitorRunnersEnvironmentID(p *write.Point, e Runner, _ bool) { + if e != nil { p.AddTag(monitoring.InfluxKeyEnvironmentID, e.Environment().ToString()) } }