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

Angus Salkeld asalkeld at redhat.com
Mon Apr 12 05:23:56 UTC 2010


Hi guys

Can I get this little patch applied?

Thanks
-Angus

On Tue, 2010-03-23 at 13:57 +1100, Angus Salkeld wrote:
> 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
> 
> 
> 
> 
> _______________________________________________
> Pacemaker mailing list
> Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker






More information about the Pacemaker mailing list