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