Blame SOURCES/bz1818035-ocf_is_clone-1-fix-clone-max-can-be-0.patch

5c52dd
From bb9e54cdac71a1f26aa626d234e38c8ae8417e9f Mon Sep 17 00:00:00 2001
5c52dd
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
5c52dd
Date: Thu, 26 Mar 2020 16:26:14 +0100
5c52dd
Subject: [PATCH] ocf-shellfuncs: fix ocf_is_clone() (clone_max can be 0 with
5c52dd
 cloned resources)
5c52dd
5c52dd
---
5c52dd
 heartbeat/ocf-shellfuncs.in | 2 +-
5c52dd
 1 file changed, 1 insertion(+), 1 deletion(-)
5c52dd
5c52dd
diff --git a/heartbeat/ocf-shellfuncs.in b/heartbeat/ocf-shellfuncs.in
5c52dd
index 7a97558a5..e0eaae1d5 100644
5c52dd
--- a/heartbeat/ocf-shellfuncs.in
5c52dd
+++ b/heartbeat/ocf-shellfuncs.in
5c52dd
@@ -557,7 +557,7 @@ ocf_is_probe() {
5c52dd
 # defined as a resource where the clone-max meta attribute is present,
5c52dd
 # and set to greater than zero.
5c52dd
 ocf_is_clone() {
5c52dd
-    [ ! -z "${OCF_RESKEY_CRM_meta_clone_max}" ] && [ "${OCF_RESKEY_CRM_meta_clone_max}" -gt 0 ]
5c52dd
+    [ ! -z "${OCF_RESKEY_CRM_meta_clone_max}" ]
5c52dd
 }
5c52dd
 
5c52dd
 # returns true if the resource is configured as a multistate