File 0001-fix-problem-with-unset-OCF_RESKEY_CRM_meta_interval-.patch of Package resource-agents.19144

From 44bf2b4ead260c586b573af09ab54d100e0ae605 Mon Sep 17 00:00:00 2001
From: Fabian Herschel <fabian.herschel@suse.com>
Date: Tue, 17 Nov 2020 14:41:19 +0100
Subject: [PATCH 1/1] fix problem with unset OCF_RESKEY_CRM_meta_interval by
 cluster framework

---
 heartbeat/ocf.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/heartbeat/ocf.py b/heartbeat/ocf.py
index 5282a205..6dbc10d6 100644
--- a/heartbeat/ocf.py
+++ b/heartbeat/ocf.py
@@ -195,7 +195,8 @@ def is_probe():
 	not running resource.
 	"""
 	return (OCF_ACTION == "monitor" and
-			env.get("OCF_RESKEY_CRM_meta_interval", "") == "0")
+			( env.get("OCF_RESKEY_CRM_meta_interval", "") == "0" or
+			  env.get("OCF_RESKEY_CRM_meta_interval", "") == "" ))
 
 
 def get_parameter(name, default=None):
-- 
2.26.2

openSUSE Build Service is sponsored by