Hi,

It seems the message output "N processes matched <regexp>. (Should be N)." is logged as a error.

This means "inform=false" never works for process matches.

I have created a patch to fix this, against current SVN trunk.

Kind regards,
- Ramon.

--
R. Bastiaans, B.ICT :: Systems Programmer, HPC&V

SARA :: Computing and Networking Services
Kruislaan 402        PO Box 94613
1098 SM Amsterdam NL 1090 GP Amsterdam NL
P.+31 (0)20 592 3000 F.+31 (0)20 668 3167

--- process.c.org	2008-08-11 14:14:23.668167952 +0200
+++ process.c	2008-08-11 14:15:49.111431379 +0200
@@ -137,7 +137,7 @@
       case '=': if (matches != (int)pp->matches)
          {
          snprintf(OUTPUT,CF_BUFSIZE*2,"%d processes matched %s (should be %d)\n",matches,pp->expr,pp->matches);
-         CfLog(cferror,OUTPUT,"");
+         CfLog(cfinform,OUTPUT,"");
          if (pp->action == 'm')
             {
             dosignals = true;
@@ -148,7 +148,7 @@
       case '>': if (matches < (int)pp->matches)
          {
          snprintf(OUTPUT,CF_BUFSIZE*2,"%d processes matched %s (should be >=%d)\n",matches,pp->expr,pp->matches);
-         CfLog(cferror,OUTPUT,"");
+         CfLog(cfinform,OUTPUT,"");
          if (pp->action == 'm')
             {
             dosignals = true;
@@ -159,7 +159,7 @@
       case '<': if (matches > (int)pp->matches)
          {
          snprintf(OUTPUT,CF_BUFSIZE*2,"%d processes matched %s (should be <=%d)\n",matches,pp->expr,pp->matches);
-         CfLog(cferror,OUTPUT,"");
+         CfLog(cfinform,OUTPUT,"");
          if (pp->action == 'm')
             {
             dosignals = true;

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
Bug-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/bug-cfengine

Reply via email to