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

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