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
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
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): $
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.
--
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
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)); # <--