aboutsummaryrefslogtreecommitdiff
path: root/libpod/container_internal.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2018-05-17 09:37:53 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2018-05-17 18:55:59 +0000
commit20bceb787da96741cb61e04b176fe7827c8b7070 (patch)
tree2d6e46262bf0b6b6f9c7da4dd45caa4c4a080f13 /libpod/container_internal.go
parent92a9f3a21262ec29b4ad17e97bb0e8c54a355cb2 (diff)
downloadpodman-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/container_internal.go')
-rw-r--r--libpod/container_internal.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/container_internal.go b/libpod/container_internal.go
index b1420aa55..39a665bb1 100644
--- a/libpod/container_internal.go
+++ b/libpod/container_internal.go
@@ -765,7 +765,7 @@ func (c *Container) cleanupCgroups() error {
func (c *Container) cleanupNetwork() error {
// Stop the container's network namespace (if it has one)
if err := c.runtime.teardownNetNS(c); err != nil {
- logrus.Errorf("unable cleanup network for container %s: %q", c.ID(), err)
+ logrus.Errorf("unable to cleanup network for container %s: %q", c.ID(), err)
}
c.state.NetNS = nil