Actions
Bug #21678
closedBug #21686: generated policies are invalid when using a generic method that doesn't exist on linux
generated policies are invalid when using a generic method that doesn't exist on linux
Status:
Released
Priority:
N/A
Assignee:
Category:
Web - Config management
Target version:
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
No
Description
⇨ Policy update error for process '20' at 2022-08-30 16:34:16 ⇨ Cannot write nodes configuration; cause was: Unexpected: Unexpected: Error when executing hooks: Exit code=1 for hook: '/opt/rudder/etc/hooks.d/policy-generation-node-ready/10-cf-promise-check'. [stdout: error: There are syntax errors in policy files ][stderr:/var/rudder/cfengine-community/inputs.new/technique_2/1.0/rudder_reporting.cf:13:103: error: syntax error unless => concat(""false""); ...] (for node(s) root)
offending code
"774f32ad-f993-4926-8a8b-84920ba974ae_${report_data.directive_id}" usebundle => technique_2_gm_5("Package state windows", "vim", "774f32ad-f993-4926-8a8b-84920ba974ae", "'Package state windows' method is not available on Linux Rudder agent, skip", "vim", "${class_prefix}_package_state_windows_vim", @{args}), unless => concat(""false"");
Actions