process matches result is not inform output, but error
Ramon Bastiaans <[email protected]>
| Newsgroups | gmane.comp.sysutils.cfengine.bugs |
|---|---|
| Message-ID | <[email protected]> |
When trying to find out why "inform=false" didn't do anything for
processes sections matches, I found out that those output messages are
considered a "error" by cfengine in stead of "inform".
I was wondering.. is this working as designed?
This means "inform=false" never does anything for processes match messages.
Otherwise, cferror could be replaced by cfinform.
grep -A 1 processes.*matched process.c
snprintf(OUTPUT,CF_BUFSIZE*2,"%d processes matched %s (should
be %d)\n",matches,pp->expr,pp->matches);
CfLog(cferror,OUTPUT,"");
--
snprintf(OUTPUT,CF_BUFSIZE*2,"%d processes matched %s (should
be >=%d)\n",matches,pp->expr,pp->matches);
CfLog(cferror,OUTPUT,"");
--
snprintf(OUTPUT,CF_BUFSIZE*2,"%d processes matched %s (should
be <=%d)\n",matches,pp->expr,pp->matches);
CfLog(cferror,OUTPUT,"");
--
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
_______________________________________________
Bug-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/bug-cfengine
smime.p7s
(application/x-pkcs7-signature, 2.9 KB) - not displayed