mirror of
https://github.com/containers/podman.git
synced 2025-09-12 01:38:59 +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 {
|
if err != nil {
|
||||||
return errors.Wrapf(err, "error renumbering locks")
|
return errors.Wrapf(err, "error renumbering locks")
|
||||||
}
|
}
|
||||||
if err := r.Shutdown(false); err != nil {
|
_ = r.Shutdown(false)
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user