resources: exec: Don't invalidate state on poke
This was some legacy incorrect decision from earlier mgmt.
This commit is contained in:
@@ -145,6 +145,7 @@ func (obj *ExecRes) Watch() error {
|
|||||||
log.Printf("%s[%s]: Watch output: %s", obj.Kind(), obj.GetName(), text)
|
log.Printf("%s[%s]: Watch output: %s", obj.Kind(), obj.GetName(), text)
|
||||||
if text != "" {
|
if text != "" {
|
||||||
send = true
|
send = true
|
||||||
|
obj.StateOK(false) // something made state dirty
|
||||||
}
|
}
|
||||||
|
|
||||||
case err := <-errch:
|
case err := <-errch:
|
||||||
@@ -165,8 +166,6 @@ func (obj *ExecRes) Watch() error {
|
|||||||
// do all our event sending all together to avoid duplicate msgs
|
// do all our event sending all together to avoid duplicate msgs
|
||||||
if send {
|
if send {
|
||||||
send = false
|
send = false
|
||||||
// it is okay to invalidate the clean state on poke too
|
|
||||||
obj.StateOK(false) // something made state dirty
|
|
||||||
obj.Event()
|
obj.Event()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user