Project

General

Profile

Bug #7647

Updated by Alexis Mousset almost 9 years ago

Rudder gives the "group_beb6b108-eae0-4554-888a-9bc7052431d8" class, but when using it as ass class condition in the technique editor, it breaks the policies: 

 <pre> 
 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):: 
 </pre> 

 The problem is the "-", CFEngine doc says: 

 <pre> 
 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_) 
 </pre>

Back