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

Commit

Permalink
Merge pull request #131 from sboeuf/fix_crio_err
Browse files Browse the repository at this point in the history
virtcontainers: Do not rollback by deleting container or pod
  • Loading branch information
Eric Ernst authored Mar 29, 2018
2 parents d283555 + 5a57b52 commit a69c493
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions virtcontainers/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ func StopPod(podID string) (VCPod, error) {
// Stop it.
err = p.stop()
if err != nil {
p.delete()
return nil, err
}

Expand Down Expand Up @@ -406,7 +405,6 @@ func StartContainer(podID, containerID string) (VCContainer, error) {
// Start it.
err = c.start()
if err != nil {
c.delete()
return nil, err
}

Expand Down Expand Up @@ -444,7 +442,6 @@ func StopContainer(podID, containerID string) (VCContainer, error) {
// Stop it.
err = c.stop()
if err != nil {
c.delete()
return nil, err
}

Expand Down

0 comments on commit a69c493

Please sign in to comment.