File bsc#1114840-0001-Test-CTS-really-don-t-require-nodes-to-be-specified-.patch of Package pacemaker.26927
From 77f6bf4a5762ae0b2192335a74894da7306c9674 Mon Sep 17 00:00:00 2001
From: Ken Gaillot <kgaillot@redhat.com>
Date: Tue, 29 Jan 2019 14:59:29 -0600
Subject: [PATCH] Test: CTS: really don't require nodes to be specified if
listing tests
9c993a7c was incomplete
---
cts/CIB.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Index: pacemaker-1.1.18+20180430.b12c320f5/cts/CIB.py
===================================================================
--- pacemaker-1.1.18+20180430.b12c320f5.orig/cts/CIB.py
+++ pacemaker-1.1.18+20180430.b12c320f5/cts/CIB.py
@@ -446,7 +446,8 @@ class ConfigFactory(object):
self.register("pacemaker12", CIB12, CM, self)
self.register("pacemaker20", CIB20, CM, self)
# self.register("hae", HASI, CM, self)
- self.target = self.CM.Env["nodes"][0]
+ if self.CM.Env["ListTests"] == 0:
+ self.target = self.CM.Env["nodes"][0]
self.tmpfile = None
def log(self, args):