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 = "" }