In verbose mode, cf-promises reports "Inputs are valid" regardless of 
whether syntax errors have been detected:

###

body common control
{
bundlesequence  => { "main" };
}

bundle agent main
{
syntax_error_here
}

###

r...@testbox:/usr/local/share/cfengine# cf-promises -vf ./test-cfpromises.cf
...
cf3:./test-cfpromises.cf:8,17: syntax error, near token 
'syntax_error_here'
cf3   > Parsing file ./test-cfpromises.cf
...
cf3 Wrote expansion summary to promise_output_common.txt
Summarizing promises as text to ./test-cfpromises.cf.txt
Summarizing promises as html to ./test-cfpromises.cf.html
cf3 Inputs are valid


-Jessica

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

Reply via email to