send shortcut reports on all container state changes

This got broken in cec750049f.
This commit is contained in:
Matthias Radestock
2018-03-25 09:08:45 +01:00
parent eaafe4db6f
commit 076acdb319

View File

@@ -373,11 +373,9 @@ func (r *registry) updateContainerState(containerID string, intendedState *strin
}
// Trigger anyone watching for updates
if err != nil {
node := c.GetNode()
for _, f := range r.watchers {
f(node)
}
node := c.GetNode()
for _, f := range r.watchers {
f(node)
}
// And finally, ensure we gather stats for it