call update in libkpod.New()

Signed-off-by: Ryan Cole <rcyoalne@gmail.com>
This commit is contained in:
Ryan Cole 2017-08-08 11:54:54 -04:00
parent efce63bdf2
commit ba07667705

View file

@ -130,7 +130,7 @@ func New(config *Config) (*ContainerServer, error) {
lock = new(sync.Mutex) lock = new(sync.Mutex)
} }
return &ContainerServer{ c := &ContainerServer{
runtime: runtime, runtime: runtime,
store: store, store: store,
storageImageServer: imageService, storageImageServer: imageService,
@ -146,7 +146,8 @@ func New(config *Config) (*ContainerServer, error) {
sandboxes: make(map[string]*sandbox.Sandbox), sandboxes: make(map[string]*sandbox.Sandbox),
}, },
config: config, config: config,
}, nil }
return c, c.Update()
} }
// Update makes changes to the server's state (lists of pods and containers) to // Update makes changes to the server's state (lists of pods and containers) to