From afba22595753f92da1945a152aea5236f050bfe3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20Sch=C3=A4fer?= Date: Sat, 23 Nov 2024 23:36:24 +0100 Subject: [PATCH] suppress podman exists output --- podman-pilot/src/podman.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/podman-pilot/src/podman.rs b/podman-pilot/src/podman.rs index f3dcfb8..45f344c 100644 --- a/podman-pilot/src/podman.rs +++ b/podman-pilot/src/podman.rs @@ -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() {