[Pacemaker] [PATCH devel] cts: make sure we only install applicable Audits

Angus Salkeld asalkeld at redhat.com
Tue Mar 23 02:57:13 UTC 2010


As subject says...

Else we will have pacemaker Audits for corosync.

-Angus

diff -r e15be5fa5635 -r 0136017505ac cts/CTSaudits.py
--- a/cts/CTSaudits.py	Thu Mar 18 09:29:05 2010 +0100
+++ b/cts/CTSaudits.py	Tue Mar 23 13:44:43 2010 +1100
@@ -779,5 +779,7 @@
 def AuditList(cm):
     result = []
     for auditclass in AllAuditClasses:
-        result.append(auditclass(cm))
+        a = auditclass(cm)
+        if a.is_applicable():
+            result.append(a)
     return result







More information about the Pacemaker mailing list