sandbox: add containers, do not get cgroup path

Add containers does not need to check the cgroup path
this is done in a different function

Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
This commit is contained in:
Jose Carlos Venegas Munoz
2019-08-26 19:46:33 -05:00
parent 074418f56b
commit 3fc6f4bc55

View File

@@ -1081,14 +1081,6 @@ func (s *Sandbox) addContainer(c *Container) error {
}
s.containers[c.id] = c
ann := c.GetAnnotations()
if ann[annotations.ContainerTypeKey] == string(PodSandbox) {
s.state.CgroupPath = c.state.CgroupPath
if !s.supportNewStore() {
return s.store.Store(store.State, s.state)
}
}
return nil
}