Merge pull request #3121 from weaveworks/3113-shortcut

make shortcut reports work (again)
This commit is contained in:
Matthias Radestock
2018-03-25 12:43:34 +01:00
committed by GitHub
2 changed files with 4 additions and 5 deletions

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

View File

@@ -259,6 +259,7 @@ func (r Report) Copy() Report {
DNS: r.DNS.Copy(),
Sampling: r.Sampling,
Window: r.Window,
Shortcut: r.Shortcut,
Plugins: r.Plugins.Copy(),
ID: fmt.Sprintf("%d", rand.Int63()),
}