Re: $(this) context usage

2012-05-07 Thread Victor Balada Diaz
On Mon, May 07, 2012 at 12:01:12PM -0700, Aleksey Tsalolikhin wrote: > On Sat, May 5, 2012 at 4:12 PM, Victor Balada Diaz wrote: > > Hello, > > > > I'm trying to write a policy (attached at the end) to play with > > resolv.conf. For > > it to work i n

$(this) context usage

2012-05-05 Thread Victor Balada Diaz
Hello, I'm trying to write a policy (attached at the end) to play with resolv.conf. For it to work i need to use $(this) context and i can't understand why and when should i use $(this). Doc is not clear and doesn't seem to even talk about this case. I've found this "trick" on examples/unit_resol

Bug in canonify()

2012-04-05 Thread Victor Balada Diaz
Hello, I think i've found a bug on cfengine 3.2.3. If someone could confirm I'll happily open a bug report. If i use canonify() under handle => body of a promise with iteration $(this.handle) doesn't work. Example code: body common control { bundlesequence => { "main" }; } bundle agent mai