From fe0f7c961d027c0812c6da4cbfed762c5c3e38e9 Mon Sep 17 00:00:00 2001 From: Frank Schroeder Date: Mon, 23 Oct 2017 10:08:32 +0200 Subject: [PATCH] Revert "local state: clone check to avoid side effect" This reverts commit af1243c7251fe6291145bbe4f4dacd374779c425. --- agent/local/state.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/agent/local/state.go b/agent/local/state.go index b0adcd53d..800750516 100644 --- a/agent/local/state.go +++ b/agent/local/state.go @@ -335,9 +335,6 @@ func (l *State) AddCheck(check *structs.HealthCheck, token string) error { return fmt.Errorf("no check") } - // clone the check since we will be modifying it. - check = check.Clone() - if l.discardCheckOutput.Load().(bool) { check.Output = "" }