mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-25 15:02:45 +00:00
Merge pull request #131 from sboeuf/fix_crio_err
virtcontainers: Do not rollback by deleting container or pod
This commit is contained in:
commit
a69c49398a
@ -164,7 +164,6 @@ func StopPod(podID string) (VCPod, error) {
|
||||
// Stop it.
|
||||
err = p.stop()
|
||||
if err != nil {
|
||||
p.delete()
|
||||
return nil, err
|
||||
}
|
||||
|
||||
@ -406,7 +405,6 @@ func StartContainer(podID, containerID string) (VCContainer, error) {
|
||||
// Start it.
|
||||
err = c.start()
|
||||
if err != nil {
|
||||
c.delete()
|
||||
return nil, err
|
||||
}
|
||||
|
||||
@ -444,7 +442,6 @@ func StopContainer(podID, containerID string) (VCContainer, error) {
|
||||
// Stop it.
|
||||
err = c.stop()
|
||||
if err != nil {
|
||||
c.delete()
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user