RE: error in stdlib

2010-02-02 Thread Zamboni, Diego
p-cfengine-boun...@cfengine.org] On Behalf Of Neil Watson Sent: Saturday, January 30, 2010 9:13 AM To: help-cfengine@cfengine.org Subject: Re: error in stdlib Another example of tough errors to find: ettin:/var/cf-masterfiles/config/trunk/inputs# cf-promises -f ./promises.cf Scalar variable src conta

Re: error in stdlib

2010-01-30 Thread Neil Watson
On Sat, Jan 30, 2010 at 04:17:25PM +0100, Mark Burgess wrote: > >It it not always as easy to give this information as you might think, >but I'll look into it. Worthwhile things are often not easy :) -- Neil Watson Linux/UNIX Consultant http://watson-wilson.ca

Re: error in stdlib

2010-01-30 Thread Mark Burgess
It it not always as easy to give this information as you might think, but I'll look into it. M Neil Watson wrote: > Another example of tough errors to find: > ettin:/var/cf-masterfiles/config/trunk/inputs# cf-promises -f > ./promises.cf > Scalar variable src contains itself (non-convergent): $

Re: error in stdlib

2010-01-30 Thread Neil Watson
Another example of tough errors to find: ettin:/var/cf-masterfiles/config/trunk/inputs# cf-promises -f ./promises.cf Scalar variable src contains itself (non-convergent): ${src} Scalar variable src contains itself (non-convergent): ${src} Without file and line numbers this is tough to find. --

Re: error in stdlib

2010-01-29 Thread NWatson
As a wish list topic the error message output from this could be more explicit. It took me quite some time adding and removing promises until I isolated this error. Sincerely, -- Neil Watson 416-673-3465 Mark Burgess wrote on 2010-01-29 16:00:10: > > Thanks, fixed. Will update automatically

Re: error in stdlib

2010-01-29 Thread Mark Burgess
Thanks, fixed. Will update automatically soon nwat...@symcor.com wrote: > From the std lib > > ## > ## file_select > ## > > body file_select name_age(name,age) # <-- age should be days > { > leaf_name => { "$(name)" }; > mtime => irange(ago(1,0,0,0,0,0),ago(0,0,$(days),0,0,0)); # <--