Blame SOURCES/bz1471182-crypt-3-fix-missing-and.patch

030326
From 635c344fb85ef225b8a0c094687d2838b0b0cd2c Mon Sep 17 00:00:00 2001
030326
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
030326
Date: Mon, 26 Oct 2020 16:36:06 +0100
030326
Subject: [PATCH] crypt: fix missing && to set exit_reason
030326
030326
---
030326
 heartbeat/crypt | 2 +-
030326
 1 file changed, 1 insertion(+), 1 deletion(-)
030326
030326
diff --git a/heartbeat/crypt b/heartbeat/crypt
030326
index 2727b5b23..0e49b6c2d 100755
030326
--- a/heartbeat/crypt
030326
+++ b/heartbeat/crypt
030326
@@ -251,7 +251,7 @@ crypt_start() {
030326
 	else
030326
 		rc=$OCF_ERR_GERNERIC
030326
 	fi
030326
-	[ $rc -ne $OCF_SUCCESS ] ocf_exit_reason "Failed to start encrypted device \"$crypt_dev\""
030326
+	[ $rc -ne $OCF_SUCCESS ] && ocf_exit_reason "Failed to start encrypted device \"$crypt_dev\""
030326
 
030326
 	return $rc
030326
 }