mirror of
https://github.com/containers/podman.git
synced 2025-12-09 23:27:09 +08:00
If the run errors, cobra does not execute post runs. It is a somehow known issue (https://github.com/spf13/cobra/issues/914) but problematic for Podmand as the runtime is shutdown during post run. Since some commands overwrite the post run and a general lack in cobra of post runs on errors, move the shutting down the engines directly into Execute. Fixing the issue may fix a number of flakes. Note that the shutdowns are NOPs for the remote client. Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
9.2 KiB
9.2 KiB