Actions
Bug #7647
closedUser story #7424: Add cfengine classes for each group of a node
CFEngine does not parse group classes with uuid
Status:
Released
Priority:
1 (highest)
Assignee:
Category:
System techniques
Target version:
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:
Description
Rudder gives the "group_beb6b108-eae0-4554-888a-9bc7052431d8" class, but when using it as class condition in the technique editor, it breaks the policies:
cf-promise check fails for promises generated at '/var/rudder/share/5d8edf20-22b9-45ee-b616-92acfdcfdf1a/rules.new/cfengine-community' ⇨ Command to check generated promises is: '/var/rudder/cfengine-community/bin/cf-promises -f /var/rudder/share/5d8edf20-22b9-45ee-b616-92acfdcfdf1a/rules.new/cfengine-community/promises.cf' ⇨ /var/rudder/share/5d8edf20-22b9-45ee-b616-92acfdcfdf1a/rules.new/cfengine-community/test_ncf/1.0/rudder_reporting.cf:9:5: error: syntax error ⇨ !(any.group_beb6b108-eae0-4554-888a-9bc7052431d8):: ⇨ ^ ⇨ /var/rudder/share/5d8edf20-22b9-45ee-b616-92acfdcfdf1a/rules.new/cfengine-community/test_ncf/1.0/rudder_reporting.cf:9:5: error: Expected promiser string, got '!' ⇨ !(any.group_beb6b108-eae0-4554-888a-9bc7052431d8):: ⇨ ^ ⇨ /var/rudder/share/5d8edf20-22b9-45ee-b616-92acfdcfdf1a/rules.new/cfengine-community/test_ncf/1.0/rudder_reporting.cf:9:6: error: Expected ';', got '(' ⇨ !(any.group_beb6b108-eae0-4554-888a-9bc7052431d8)::
The problem is the "-", CFEngine doc says:
CFEngine built-in words, names of variables, bundles, body templates and classes may only contain the usual alphanumeric and underscore characters (a-zA-Z0-9_)
Actions