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

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