mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-30 09:13:29 +00:00
virtcontainers: remove the redundant sandbox config store
The following storeSandbox() will store the sandbox config data, thus there is no need to store it specifically before run storeSandbox(). Signed-off-by: lifupan <lifupan@gmail.com>
This commit is contained in:
parent
0db6974ace
commit
5b749a56d8
@ -1138,10 +1138,6 @@ func (s *Sandbox) CreateContainer(contConfig ContainerConfig) (VCContainer, erro
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if err := s.store.Store(store.Configuration, *(s.config)); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if err := s.updateCgroups(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -1242,11 +1238,6 @@ func (s *Sandbox) DeleteContainer(containerID string) (VCContainer, error) {
|
||||
}
|
||||
}
|
||||
|
||||
// Store sandbox config
|
||||
if err := s.store.Store(store.Configuration, *(s.config)); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if err = s.storeSandbox(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user