Actions
Bug #5882
closedUser story #5293: Add a 'changes only' compliance mode, only reporting changes on systems
System variable RUDDER_REPORT_MODE is never set
Status:
Released
Priority:
1 (highest)
Assignee:
Category:
Web - Maintenance
Target version:
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:
Description
The system variable RUDDER_REPORT_MODE should contain value "changes-only" or "full-compliance", to tell the promises what mode to run in.
This is correctly defined in cf-clerk:
./src/main/scala/com/normation/cfclerk/services/impl/SystemVariableSpecServiceImpl.scala:154: , SystemVariableSpec("RUDDER_REPORT_MODE", "Defines if Rudder should send compliance reports or only change (error, repair) one. (default full-compliance)"
But never used in rudder:
$ grep -rHni REPORT_MODE rudder/ $
And of course, this means the value is never set in the generated promises:
# on changes only, we only reports on repaired or error message "changes_only" expression => strcmp("", "changes-only"); # full compliance is the default mode "full_compliance" not => "changes_only";
(that empty string on line 2 should be "changes-only" or "full-compliance")
Actions