Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE
resource-agents.10370
0023-1246.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0023-1246.patch of Package resource-agents.10370
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
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor