I have tried every variation on this I can think of including moving the 
canonify to the classes promise (coredump) and I can't make this work.

Any other suggestions on how to do this?

This is with Community 3.0.4


-----Original Message-----
From: help-cfengine-boun...@cfengine.org on behalf of Ingersoll, Robert
Sent: Mon 3/15/2010 3:25 PM
To: nwat...@symcor.com
Cc: help-cfengine@cfengine.org; help-cfengine-boun...@cfengine.org
Subject: RE: canonify promise_repaired

I'm not sure if this is telling me it's unsupported, syntactically incorrect, 
or a bug?

cf-agent -KI -b test -f ./test.cf
 !!! No bundlesequence in the common control body
 >> Using command line specified bundlesequence
 -> Rotating files /tmp/alert.log in 10 fifo
Validation: Class item on rhs of lval 'class addition' given as { @-@ } is out 
of bounds (should match [a-zA-Z0-9_$()\[\].]+)
 -> Rotating files /tmp/alert.log in 10 fifo
Validation: Class item on rhs of lval 'class addition' given as { @-@ } is out 
of bounds (should match [a-zA-Z0-9_$()\[\].]+)


bundle agent test
{
vars:
        "LogRotate"     slist   => {
                                "/tmp/alert.log",
                                };

files:
        "$(LogRotate)"
                action          => ifelapsed("120"),
                classes         => repaired("logrotate_$(this.promiser)"),
                rename          => rotate("10");
}

body classes repaired(class)
{
promise_repaired => { canonify("$(class)") };
}







The information transmitted is intended only for the person or entity to which 
it is addressed and may contain confidential and/or privileged material.  Any 
review, retransmission, dissemination or other use of, or taking of any action 
in reliance upon, this information by person or entities other than the 
intended recipient is prohibited.  If you received this in error, please 
contact the sender and delete the material from any computer.
postmas...@stginc.com
www.stginc.com





The information transmitted is intended only for the person or entity to which 
it is addressed and may contain confidential and/or privileged material.  Any 
review, retransmission, dissemination or other use of, or taking of any action 
in reliance upon, this information by person or entities other than the 
intended recipient is prohibited.  If you received this in error, please 
contact the sender and delete the material from any computer.
postmas...@stginc.com
www.stginc.com

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to