From 7844d9df733bbec83d8fecddef8ebf969c78e1f4 Mon Sep 17 00:00:00 2001 From: James Rasell Date: Thu, 29 Aug 2019 18:58:48 +0100 Subject: [PATCH] Write Consul state latest-events to the correct jobgroup key. --- pkg/state/scale/consul/consul.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/state/scale/consul/consul.go b/pkg/state/scale/consul/consul.go index ec3c243..99802fc 100644 --- a/pkg/state/scale/consul/consul.go +++ b/pkg/state/scale/consul/consul.go @@ -129,7 +129,7 @@ func (s StateBackend) PutScalingEvent(job string, event *state.ScalingEventMessa // Write the new event to the latest store. lePair := &api.KVPair{ - Key: fmt.Sprintf("%s%s/%s:%s", s.latestEventsPath, event.ID.String(), job, event.GroupName), + Key: fmt.Sprintf("%s%s:%s", s.latestEventsPath, job, event.GroupName), Value: marshal, } _, err = s.kv.Put(lePair, nil)