Blame SOURCES/bz1718219-podman-3-remove-docker-remnant.patch

b4b3ce
From 69c5d35a7a5421d4728db824558007bbb91a9d4a Mon Sep 17 00:00:00 2001
b4b3ce
From: Michele Baldessari <michele@acksyn.org>
b4b3ce
Date: Wed, 12 Jun 2019 12:02:06 +0200
b4b3ce
Subject: [PATCH] Remove unneeded podman exec --help call
b4b3ce
b4b3ce
There are no podman releases that do not have the exec argument, so
b4b3ce
let's just drop this remnant that came from the docker RA.
b4b3ce
b4b3ce
Signed-off-by: Michele Baldessari <michele@acksyn.org>
b4b3ce
---
b4b3ce
 heartbeat/podman | 10 ++--------
b4b3ce
 1 file changed, 2 insertions(+), 8 deletions(-)
b4b3ce
b4b3ce
diff --git a/heartbeat/podman b/heartbeat/podman
b4b3ce
index a9bd57dea..858023555 100755
b4b3ce
--- a/heartbeat/podman
b4b3ce
+++ b/heartbeat/podman
b4b3ce
@@ -190,14 +190,8 @@ monitor_cmd_exec()
b4b3ce
 		return $rc
b4b3ce
 	fi
b4b3ce
 
b4b3ce
-	if podman exec --help >/dev/null 2>&1; then
b4b3ce
-		out=$(podman exec ${CONTAINER} $OCF_RESKEY_monitor_cmd 2>&1)
b4b3ce
-		rc=$?
b4b3ce
-	else
b4b3ce
-		out=$(echo "$OCF_RESKEY_monitor_cmd" | nsenter --target $(podman inspect --format {{.State.Pid}} ${CONTAINER}) --mount --uts --ipc --net --pid 2>&1)
b4b3ce
-		rc=$?
b4b3ce
-	fi
b4b3ce
-
b4b3ce
+	out=$(podman exec ${CONTAINER} $OCF_RESKEY_monitor_cmd 2>&1)
b4b3ce
+	rc=$?
b4b3ce
 	if [ $rc -eq 127 ]; then
b4b3ce
 		ocf_log err "monitor cmd failed (rc=$rc), output: $out"
b4b3ce
 		ocf_exit_reason "monitor_cmd, ${OCF_RESKEY_monitor_cmd} , not found within container."