From ba07667705c36f8b1911a2efafe3e59a9be34ba6 Mon Sep 17 00:00:00 2001 From: Ryan Cole Date: Tue, 8 Aug 2017 11:54:54 -0400 Subject: [PATCH] call update in libkpod.New() Signed-off-by: Ryan Cole --- libkpod/container_server.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libkpod/container_server.go b/libkpod/container_server.go index c3535e9b..4ba75d93 100644 --- a/libkpod/container_server.go +++ b/libkpod/container_server.go @@ -130,7 +130,7 @@ func New(config *Config) (*ContainerServer, error) { lock = new(sync.Mutex) } - return &ContainerServer{ + c := &ContainerServer{ runtime: runtime, store: store, storageImageServer: imageService, @@ -146,7 +146,8 @@ func New(config *Config) (*ContainerServer, error) { sandboxes: make(map[string]*sandbox.Sandbox), }, config: config, - }, nil + } + return c, c.Update() } // Update makes changes to the server's state (lists of pods and containers) to