Cfengine Help: Re: "Duplicate selection of value for variable ..." messages

2010-11-25 Thread no-reply
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

Cfengine Help: Re: "Duplicate selection of value for variable ..." messages

2010-11-25 Thread no-reply
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

Re: "Duplicate selection of value for variable ..." messages

2010-11-25 Thread Mark Burgess
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: > >

Re: "Duplicate selection of value for variable ..." messages

2010-11-25 Thread Michael Potter
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

Re: Cfengine Help: Re: "Duplicate selection of value for variable ..." messages

2010-11-25 Thread Daniel V. Klein
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

Cfengine Help: Re: Cfengine Help: Re: "Duplicate selection of value for variable ..." messages

2010-11-25 Thread no-reply
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

Re: Cfengine Help: Re: "Duplicate selection of value for variable ..." messages

2010-11-25 Thread Seva Gluschenko
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

Cfengine Help: Re: "Duplicate selection of value for variable ..." messages

2010-11-25 Thread no-reply
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

Cfengine Help: Re: "Duplicate selection of value for variable ..." messages

2010-11-25 Thread no-reply
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

Cfengine Help: Re: "Duplicate selection of value for variable ..." messages

2010-11-25 Thread no-reply
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

Cfengine Help: Re: "Duplicate selection of value for variable ..." messages

2010-11-25 Thread no-reply
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

Re: Cfengine Help: Re: "Duplicate selection of value for variable ..." messages

2010-11-25 Thread Marc Baudoin
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...

Cfengine Help: Re: "Duplicate selection of value for variable ..." messages

2010-11-25 Thread no-reply
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

Cfengine Help: Re: "Duplicate selection of value for variable ..." messages

2010-11-25 Thread no-reply
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,

Cfengine Help: Re: duplicate selection of value error

2010-11-15 Thread no-reply
Forum: Cfengine Help Subject: Re: duplicate selection of value error Author: szarag...@salesforce.com Link to topic: https://cfengine.com/forum/read.php?3,19046,19275#msg-19275 Sorry, forgot to mention I'm running 3.0.5p1 on centos 5. ___ Help-cfe

Cfengine Help: Re: duplicate selection of value error

2010-11-15 Thread no-reply
Forum: Cfengine Help Subject: Re: duplicate selection of value error Author: szarag...@salesforce.com Link to topic: https://cfengine.com/forum/read.php?3,19046,19274#msg-19274 I see the same type of error message... cf3 !! Duplicate selection of value for variable "secondary_packages"

Cfengine Help: Re: duplicate selection of value error

2010-11-09 Thread no-reply
Forum: Cfengine Help Subject: Re: duplicate selection of value error Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,19046,19164#msg-19164 Update. I upgraded to 3.1.0 final yesterday but still see this warning. ___ Help

Re: Cfengine Help: Re: duplicate selection of value error

2010-11-03 Thread Deb Heller
I'd have to say that the authentication problems I was seeing with 1.1.2 release seem to have disappeared with the Beta. Quite seamless now. Can't wait for the official release! deb On 11/3/10 8:32 AM, no-re...@cfengine.com wrote: > Forum: Cfengine Help > Subject: Re: duplic

Cfengine Help: Re: duplicate selection of value error

2010-11-03 Thread no-reply
Forum: Cfengine Help Subject: Re: duplicate selection of value error Author: mark Link to topic: https://cfengine.com/forum/read.php?3,19046,19050#msg-19050 Thank goodness! This one had us stumped. THanks, Neil ___ Help-cfengine mailing list Help

Cfengine Help: Re: duplicate selection of value error

2010-11-03 Thread no-reply
Forum: Cfengine Help Subject: Re: duplicate selection of value error Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,19046,19048#msg-19048 I'll try again with the 3.1 final. BTW, Mark after regenerating all new keys and performing new key exchanges the authentic

Cfengine Help: Re: duplicate selection of value error

2010-11-03 Thread no-reply
Forum: Cfengine Help Subject: Re: duplicate selection of value error Author: mark Link to topic: https://cfengine.com/forum/read.php?3,19046,19047#msg-19047 Doesn't happen for me using 3.1.0 and your example. Not long now, T-minus 4 days and cou

Cfengine Help: Re: !! Duplicate selection of value for variable

2010-11-02 Thread no-reply
Forum: Cfengine Help Subject: Re: !! Duplicate selection of value for variable Author: Beto Link to topic: https://cfengine.com/forum/read.php?3,18976,19032#msg-19032 1. Where is the variable redefinition in the bundle provided in my original post? 2. Why does this identical bundle invoked in

Cfengine Help: Re: !! Duplicate selection of value for variable

2010-11-02 Thread no-reply
Forum: Cfengine Help Subject: Re: !! Duplicate selection of value for variable Author: mark Link to topic: https://cfengine.com/forum/read.php?3,18976,19030#msg-19030 For some reason, you are "trying to" redefine a variable that is declared (by default) to be

Cfengine Help: Re: !! Duplicate selection of value for variable

2010-11-02 Thread no-reply
Forum: Cfengine Help Subject: Re: !! Duplicate selection of value for variable Author: Beto Link to topic: https://cfengine.com/forum/read.php?3,18976,19029#msg-19029 Nobody has a clue? ___ Help-cfengine mailing list Help-cfengine@cfengine.org https

Re: duplicate selection of value

2010-05-17 Thread Michael Potter
On Mon, May 17, 2010 at 4:43 PM, Seva Gluschenko wrote: > I still get no clue why and how this construction is better than > process_select internal feature of Cfengine3 itself ) > process_select does not work very well on Solaris, as it will see across zones. You need Nova or above for this to d

Re: duplicate selection of value

2010-05-16 Thread Seva Gluschenko
I still get no clue why and how this construction is better than process_select internal feature of Cfengine3 itself ) 2010/5/17 Michael Potter : > > > On Mon, May 17, 2010 at 4:26 PM, Daniel Dehennin > wrote: >> >> mega...@gmail.com writes: >> >> > It turns out a simple "grep -v grep" at the end

Re: duplicate selection of value

2010-05-16 Thread Michael Potter
On Mon, May 17, 2010 at 4:26 PM, Daniel Dehennin < daniel.dehen...@baby-gnu.org> wrote: > mega...@gmail.com writes: > > > It turns out a simple "grep -v grep" at the end of the shell command > > did the trick: > > > > "myarray[$(mykeys)]" string => execresult("/usr/bin/ps -f | grep > > $(mylist[$(

Re: duplicate selection of value

2010-05-16 Thread Daniel Dehennin
mega...@gmail.com writes: > It turns out a simple "grep -v grep" at the end of the shell command > did the trick: > > "myarray[$(mykeys)]" string => execresult("/usr/bin/ps -f | grep > $(mylist[$(mykeys)]) | grep -v grep","useshell"); That's why pgrep exists ;-) -- Daniel Dehennin Récupérer ma c

Re: Re: duplicate selection of value

2010-05-16 Thread megamic
It turns out a simple "grep -v grep" at the end of the shell command did the trick: "myarray[$(mykeys)]" string => execresult("/usr/bin/ps -f | grep $(mylist[$(mykeys)]) | grep -v grep","useshell"); On May 14, 2010 8:05pm, Michael Potter wrote: On Fri, May 14, 2010 at 4:58 PM, Сева Глущ

Re: duplicate selection of value

2010-05-14 Thread Michael Potter
On Fri, May 14, 2010 at 4:58 PM, Сева Глущенко wrote: > The following promise > > "myarray[$(mykeys)]" string => execresult("/usr/bin/ps -f | grep > $(mylist[$(mykeys)])","useshell"); > > will expand not the way you expecting it. It doesn't mean > > "myarray[a]" string => execresult("/usr/bin/ps -

Re: duplicate selection of value

2010-05-13 Thread Сева Глущенко
The following promise "myarray[$(mykeys)]" string => execresult("/usr/bin/ps -f | grep $(mylist[$(mykeys)])","useshell"); will expand not the way you expecting it. It doesn't mean "myarray[a]" string => execresult("/usr/bin/ps -f | grep $(mylist[a])","useshell"); "myarray[b]" string => execresul

Re: Duplicate selection of value for variable "start_cmd" in scope start_service

2010-03-24 Thread NWatson
What you are doing should work. We'd need to see you methods to understand the error. AFAIK the left side of the usebundle line currently has no purpose so it can be anything. Sincerely, -- Neil Watson 416-673-3465 CONFIDENTIALITY WARNING This communication, including any attachments, is f