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

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