Forum: Cfengine Help
Subject: Re: "Duplicate selection of value for variable ..." messages
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,19400,19419#msg-19419
Mark Burgess Wrote:
---
> I recall fixing this me
Forum: Cfengine Help
Subject: Re: "Duplicate selection of value for variable ..." messages
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,19400,19416#msg-19416
I saw it today in 3.1 until I made the correction in my policy as pointed out
I recall fixing this message a while ago, but I presume everyone is
saying that it is still present in 3.1?
On 11/25/2010 09:35 PM, Michael Potter wrote:
> I use policy=>"free" on the variable to avoid these messages. Not sure
> if this is a solution or a workaround though...
>
> vars:
>
>
I use policy=>"free" on the variable to avoid these messages. Not sure
if this is a solution or a workaround though...
vars:
"foo"
slist =>
{
readstringlist ( "/tmp/foo" , "#.*" , "[\n]" , 1000 ,
10 )
}, policy
s, not braces).
>
> By all means, Cfengine should have either been producing an error
> message or handling it correctly, while it actually shows signs of
> some memory corruption.
>
> 2010/11/25 :
>> Forum: Cfengine Help
>> Subject: Re: "Duplicate selection of value fo
Forum: Cfengine Help
Subject: Re: Cfengine Help: Re: "Duplicate selection of value for variable ..."
messages
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,19400,19409#msg-19409
Seva,
The result is the same. Braces and parenthesis are interchangeable in cfengi
rruption.
2010/11/25 :
> Forum: Cfengine Help
> Subject: Re: "Duplicate selection of value for variable ..." messages
> Author: zzamboni
> Link to topic: https://cfengine.com/forum/read.php?3,19400,19407#msg-19407
>
> Bug filed: https://cfengine.com/bugtracker/vie
Forum: Cfengine Help
Subject: Re: "Duplicate selection of value for variable ..." messages
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,19400,19407#msg-19407
Bug filed: https://cfengine.com/bugtracker/view.php?id=397
I just noticed another (maybe relate
Forum: Cfengine Help
Subject: Re: "Duplicate selection of value for variable ..." messages
Author: mark
Link to topic: https://cfengine.com/forum/read.php?3,19400,19406#msg-19406
You are right, it should not make any difference whether you use { } or not
around the function. By all mea
Forum: Cfengine Help
Subject: Re: "Duplicate selection of value for variable ..." messages
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,19400,19405#msg-19405
Actually, there is a bit of an inconsistency here in the syntax. List variables
can be included into o
Forum: Cfengine Help
Subject: Re: "Duplicate selection of value for variable ..." messages
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,19400,19404#msg-19404
Nice catch Diego. I think that the braces were in the reference before, how
else would I have co
no-re...@cfengine.com écrit :
>
> readstringlist() returns an array, so the braces around it are not needed.
> Removing them make the test work correctly:
That's right, thank you!
Then the three examples that use readstringlist in the reference
manual are wrong because they all use braces...
Forum: Cfengine Help
Subject: Re: "Duplicate selection of value for variable ..." messages
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,19400,19402#msg-19402
readstringlist() returns an array, so the braces around it are not needed.
Removing them make the
Forum: Cfengine Help
Subject: Re: "Duplicate selection of value for variable ..." messages
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,19400,19401#msg-19401
I see it too. I don't know the cause.
https://cfengine.com/forum/read.php?3,19046,
Hi,
cf-agent, used with the -I option and the attached test.cf file,
displays:
!! Duplicate selection of value for variable "foo" in scope test
!! Rule from /home/user/.cfagent/inputs/test.cf at/before line 14
!! Duplicate selection of value for variable "foo" in scope test
!! Rule from /home
15 matches
Mail list logo