aboutsummaryrefslogtreecommitdiff
path: root/cmd/podman/volume_rm.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/podman/volume_rm.go')
-rw-r--r--cmd/podman/volume_rm.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/volume_rm.go b/cmd/podman/volume_rm.go
index 77137eb7a..0141d06da 100644
--- a/cmd/podman/volume_rm.go
+++ b/cmd/podman/volume_rm.go
@@ -51,7 +51,7 @@ func volumeRmCmd(c *cliconfig.VolumeRmValues) error {
if err != nil {
return errors.Wrapf(err, "error creating libpod runtime")
}
- defer runtime.Shutdown(false)
+ defer runtime.DeferredShutdown(false)
deletedVolumeNames, err := runtime.RemoveVolumes(getContext(), c)
if err != nil {
if len(deletedVolumeNames) > 0 {