From e953828d0db40bd84bb05d59a7b3bb39c6185308 Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Thu, 14 Nov 2019 10:38:17 -0500 Subject: Discard errors from Shutdown in `system renumber` Every other Podman command discards errors from Shutdown, which will error if containers are running. Mirror that behavior, just ignore the errors. Signed-off-by: Matthew Heon --- cmd/podman/system_renumber.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmd/podman/system_renumber.go b/cmd/podman/system_renumber.go index 81752a177..4e90a2d8c 100644 --- a/cmd/podman/system_renumber.go +++ b/cmd/podman/system_renumber.go @@ -44,9 +44,7 @@ func renumberCmd(c *cliconfig.SystemRenumberValues) error { if err != nil { return errors.Wrapf(err, "error renumbering locks") } - if err := r.Shutdown(false); err != nil { - return err - } + _ = r.Shutdown(false) return nil } -- cgit v1.2.3-54-g00ecf