File 0023-1246.patch of Package resource-agents.11694
From cbc949a38f1ec430d2c9d8b4dc44caa1b54c849f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Kristoffer=20Gr=C3=B6nlund?= <krig@koru.se>
Date: Wed, 17 Oct 2018 15:29:47 +0200
Subject: [PATCH] dev: ocf.py: depth is not a time parameter and shouldn't have
the s suffix
---
heartbeat/ocf.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/heartbeat/ocf.py b/heartbeat/ocf.py
index 0404eb4c4..26cca239d 100644
--- a/heartbeat/ocf.py
+++ b/heartbeat/ocf.py
@@ -250,7 +250,7 @@ def __str__(self):
def to_xml(self):
def opt(s, name, var):
if var is not None:
- if type(var) == int:
+ if type(var) == int and name in ("timeout", "interval"):
var = "{}s".format(var)
return s + ' {}="{}"'.format(name, var)
return s