diff options
author | Matthew Heon <matthew.heon@gmail.com> | 2018-05-17 09:37:53 -0400 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-05-17 18:55:59 +0000 |
commit | 20bceb787da96741cb61e04b176fe7827c8b7070 (patch) | |
tree | 2d6e46262bf0b6b6f9c7da4dd45caa4c4a080f13 /libpod/oci.go | |
parent | 92a9f3a21262ec29b4ad17e97bb0e8c54a355cb2 (diff) | |
download | podman-20bceb787da96741cb61e04b176fe7827c8b7070.tar.gz podman-20bceb787da96741cb61e04b176fe7827c8b7070.tar.bz2 podman-20bceb787da96741cb61e04b176fe7827c8b7070.zip |
Use container cleanup() functions when removing
Instead of manually calling the individual functions that cleanup
uses to tear down a container's resources, just call the cleanup
function to make sure that cleanup only needs to happen in one
place.
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes: #790
Approved by: rhatdan
Diffstat (limited to 'libpod/oci.go')
-rw-r--r-- | libpod/oci.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/oci.go b/libpod/oci.go index 4dbf5526d..22519acbd 100644 --- a/libpod/oci.go +++ b/libpod/oci.go @@ -465,7 +465,7 @@ func (r *OCIRuntime) updateContainerStatus(ctr *Container) error { } statusCode, err := strconv.Atoi(string(statusCodeStr)) if err != nil { - return errors.Wrapf(err, "error convertaing exit status code for container %s to int", + return errors.Wrapf(err, "error converting exit status code for container %s to int", ctr.ID()) } ctr.state.ExitCode = int32(statusCode) |