Merge pull request #131 from sboeuf/fix_crio_err

virtcontainers: Do not rollback by deleting container or pod
This commit is contained in:
Eric Ernst 2018-03-29 08:36:05 -07:00 committed by GitHub
commit a69c49398a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}