summaryrefslogtreecommitdiff
path: root/libpod/runtime_volume_linux.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@pm.me>2019-05-10 12:42:14 -0400
committerMatthew Heon <matthew.heon@pm.me>2019-05-10 14:14:29 -0400
commit5cbb3e7e9d14ff8e09e3a36c974d73e9c1a5b9a9 (patch)
treec669b0dcd63bc34371a990efd1dd8b66d732d5da /libpod/runtime_volume_linux.go
parent627dbd49c5a80146e5806797243b63d0bd157760 (diff)
downloadpodman-5cbb3e7e9d14ff8e09e3a36c974d73e9c1a5b9a9.tar.gz
podman-5cbb3e7e9d14ff8e09e3a36c974d73e9c1a5b9a9.tar.bz2
podman-5cbb3e7e9d14ff8e09e3a36c974d73e9c1a5b9a9.zip
Use standard remove functions for removing pod ctrs
Instead of rewriting the logic, reuse the standard logic we use for removing containers, which is much better tested. Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'libpod/runtime_volume_linux.go')
-rw-r--r--libpod/runtime_volume_linux.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/runtime_volume_linux.go b/libpod/runtime_volume_linux.go
index 40040fc52..a326ed0e0 100644
--- a/libpod/runtime_volume_linux.go
+++ b/libpod/runtime_volume_linux.go
@@ -116,7 +116,7 @@ func (r *Runtime) removeVolume(ctx context.Context, v *Volume, force bool) error
// containers?
// I'm inclined to say no, in case someone accidentally
// wipes a container they're using...
- if err := r.removeContainer(ctx, ctr, false, false); err != nil {
+ if err := r.removeContainer(ctx, ctr, false, false, false); err != nil {
return errors.Wrapf(err, "error removing container %s that depends on volume %s", ctr.ID(), v.Name())
}
}