On 29-03-11 15:17, M LZ wrote: > > Hi, > > I encounter the following problem, extracted from a more complex config: > > bundle agent test { > > classes: > > "test_class" expression => fileexists("/etc/passwd"); > > # "test_class" and => { fileexists("/etc/passwd") }; > > # "test_class" expression => "sunos_5_10"; > > > vars: > > test_class:: > > "test_var" string => "test_var_value"; > > > > reports: > > test_class:: > > "DEBUG: test_var has value $(test_var)"; > > } > > The output to this simple example ( run by root ) : > > # /var/cfengine/bin/cf-agent -I -K -f ./test.cf <http://test.cf> > R: DEBUG: test_var has value $(test_var) > > I got the same output when using test_class" expression => isdir("/etc"); > > > When defining the test_class by using built-in classes for instantce, > things seem to work ok: > > # /var/cfengine/bin/cf-agent -I -K -f ./test.cf <http://test.cf> > R: DEBUG: test_var has value test_var_value > > Is it something that I miss or things are not working the way the > documentation says? > > Test run on cfengine-3.1.4, debian_5 linux and sparc solaris 10 . >
I just tested this example with svn version 1917 (3.1.5a) on debian squeeze and everythins works as expected: {{{ 0:55 gb-r10n2.irc.sara.nl:/var/tmp/bas root# cf-agent -K -f /var/tmp/bas/test.cf R: DEBUG: test_var has value test_var_value }}} -- ******************************************************************** * Bas van der Vlies e-mail: b...@sara.nl * * SARA - Academic Computing Services Amsterdam, The Netherlands * ******************************************************************** _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine