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

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