3.0.1a3: global classes
Jim Wight <[email protected]> Mon, 12 Jan 2009 15:38:41 +0000
| Newsgroups | gmane.comp.sysutils.cfengine.bugs |
|---|---|
| Message-ID | <EMEW-l0BFcg3d5a4fcee59bfe30f205ad6dbf8a5432-496B6401.6000203@ncl.ac.uk> |
I was expecting classes to be global, like variables. Is it not possible to do
what I am attempting in the commented-out statements in the following? I get a
syntax error.
body common control
{
bundlesequence => { "month" };
}
bundle common g
{
classes:
"month1" expression => "January";
vars:
month1::
"mth1" string => "January (common)";
!month1::
"mth1" string => "Not January";
}
bundle agent month
{
classes:
"month2" expression => "January";
reports:
month2::
"January (agent)" ;
January::
"$(g.mth1)";
# $(g.month1)::
# "$(g.mth1)";
}
BTW, this reports
January (agent)
Not January
so expression (at least) still doesn't work in "bundle common".
Jim