mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-26 15:32:30 +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.
|
// Stop it.
|
||||||
err = p.stop()
|
err = p.stop()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
p.delete()
|
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -406,7 +405,6 @@ func StartContainer(podID, containerID string) (VCContainer, error) {
|
|||||||
// Start it.
|
// Start it.
|
||||||
err = c.start()
|
err = c.start()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
c.delete()
|
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -444,7 +442,6 @@ func StopContainer(podID, containerID string) (VCContainer, error) {
|
|||||||
// Stop it.
|
// Stop it.
|
||||||
err = c.stop()
|
err = c.stop()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
c.delete()
|
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user