From 564a07e62e79065e9c6ea060b82185bdf5bdae0c Mon Sep 17 00:00:00 2001 From: James Shubin Date: Sun, 12 Mar 2017 11:06:36 -0400 Subject: [PATCH] resources: exec: Don't invalidate state on poke This was some legacy incorrect decision from earlier mgmt. --- resources/exec.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/exec.go b/resources/exec.go index ecc91dd0..4248424e 100644 --- a/resources/exec.go +++ b/resources/exec.go @@ -145,6 +145,7 @@ func (obj *ExecRes) Watch() error { log.Printf("%s[%s]: Watch output: %s", obj.Kind(), obj.GetName(), text) if text != "" { send = true + obj.StateOK(false) // something made state dirty } case err := <-errch: @@ -165,8 +166,6 @@ func (obj *ExecRes) Watch() error { // do all our event sending all together to avoid duplicate msgs if send { send = false - // it is okay to invalidate the clean state on poke too - obj.StateOK(false) // something made state dirty obj.Event() } }