diff options
author | Matthew Heon <mheon@redhat.com> | 2019-11-14 10:38:17 -0500 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2019-11-22 17:27:06 -0500 |
commit | e953828d0db40bd84bb05d59a7b3bb39c6185308 (patch) | |
tree | 2bb9328fc0b72f1b719bc4d59227bd465810c384 | |
parent | 1284260b668168c560e65b803979eb2caff0293a (diff) | |
download | podman-e953828d0db40bd84bb05d59a7b3bb39c6185308.tar.gz podman-e953828d0db40bd84bb05d59a7b3bb39c6185308.tar.bz2 podman-e953828d0db40bd84bb05d59a7b3bb39c6185308.zip |
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 <mheon@redhat.com>
-rw-r--r-- | cmd/podman/system_renumber.go | 4 |
1 files changed, 1 insertions, 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 } |