forked from containers/podman
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cobra: move engine shutdown to Execute
If the run errors, cobra does not execute post runs. It is a somehow known issue (spf13/cobra#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>
- Loading branch information
Showing
2 changed files
with
23 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters