Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
virtcontainers: remove the redundant sandbox config store
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
lifupan authored and Eric Ernst committed Aug 29, 2019
1 parent 5737f80 commit a85252e
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions virtcontainers/sandbox.go
Original file line number Diff line number Diff line change
Expand Up @@ -1114,10 +1114,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
}
Expand Down Expand Up @@ -1217,11 +1213,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
}
Expand Down

0 comments on commit a85252e

Please sign in to comment.