node: Put a reference to the node in containers

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi
2014-11-10 16:23:42 -08:00
parent 43a328c060
commit 74c23faeeb

View File

@@ -119,6 +119,7 @@ func (n *Node) updateState() error {
for _, c := range containers {
container := &Container{}
container.Container = c
container.node = n
n.containers[container.Id] = container
}