Skip to content

Commit

Permalink
suppress podman exists output
Browse files Browse the repository at this point in the history
  • Loading branch information
schaefi committed Nov 23, 2024
1 parent 013d641 commit afba225
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions podman-pilot/src/podman.rs
Original file line number Diff line number Diff line change
Expand Up @@ -702,18 +702,18 @@ pub fn gc_cid_file(
if Lookup::is_debug() {
debug!("{:?}", exists.get_args());
}
let status = match exists.status() {
Ok(status) => {
if status.success() {
status
let status = match exists.output() {
Ok(output) => {
if output.status.success() {
output.status
} else {
let _ = Container::podman_setup_permissions();
exists.status()?
exists.output()?.status
}
}
Err(_) => {
let _ = Container::podman_setup_permissions();
exists.status()?
exists.output()?.status
}
};
if status.success() {
Expand Down

0 comments on commit afba225

Please sign in to comment.