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 need to use $(this) context and i can't underst

Re: $(this) context usage

2012-05-07 Thread Aleksey Tsalolikhin
and the "this" context can be used to provide context where context is needed. This is all documented at http://cfengine.com/manuals/cf3-Reference#Variable-context-this Try that on for size. Best, -at ___ Help-cfengine mailing list Help-cfengine@c

Re: $(this) context usage

2012-05-07 Thread Aleksey Tsalolikhin
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 need to use $(this) context and i can't understand why and when > should > i use $(this). Dear Victor, Use the "this" conte

$(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