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>
This commit is contained in:
Matthew Heon
2019-11-14 10:38:17 -05:00
parent 1284260b66
commit e953828d0d

View File

@ -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
}