resources: exec: Don't invalidate state on poke

This was some legacy incorrect decision from earlier mgmt.
This commit is contained in:
James Shubin
2017-03-12 11:06:36 -04:00
parent a358135e41
commit 564a07e62e

View File

@@ -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()
}
}