Revert "local state: clone check to avoid side effect"

This reverts commit af1243c725.
pull/3607/merge
Frank Schroeder 7 years ago
parent 42af4cdc70
commit 4e862d126d
No known key found for this signature in database
GPG Key ID: 4D65C6EAEC87DECD

@ -335,9 +335,6 @@ func (l *State) AddCheck(check *structs.HealthCheck, token string) error {
return fmt.Errorf("no check") return fmt.Errorf("no check")
} }
// clone the check since we will be modifying it.
check = check.Clone()
if l.discardCheckOutput.Load().(bool) { if l.discardCheckOutput.Load().(bool) {
check.Output = "" check.Output = ""
} }

Loading…
Cancel
Save