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

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