From 4e862d126dc158388a40c0e4ace1566b7cc02c43 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 b0adcd53d7..8007505167 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 = "" }