mirror of
https://github.com/containers/podman.git
synced 2025-09-11 00:54:42 +08:00
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:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user