I should have clarified that I'm using version_2 (installed via a "Dag Wieers" 
RPM -- cfengine-2.2.3-1.el5.rf ).  I haven't seen "bundles" in CFengine v2. 

Thanks for your answer.  I don't think that it's relevant to v2 (and could be 
wrong about that).


> To: help-cfengine@cfengine.org
> Subject: Cfengine Help: Re: cfengine edit_line - don't understand,    must be 
> something very basic
> From: fo...@cfengine.com
> Date: Thu, 25 Mar 2010 22:45:27 +0100
> 
> Forum: Cfengine Help
> Subject: Re: cfengine edit_line - don't understand, must be something very 
> basic
> Author: mark
> Link to topic: https://cfengine.com/forum/read.php?3,16672,16674#msg-16674
> 
> What you are doing byusing the getindices() list variable directly as an 
> arbument to the edit bundle is to iterate over the editing of the file 
> itself, i.e.  you are saying
> 
> for each index do
>    edit file(...index ....)
>       edit lines
> 
> You should pass the list as @(bundle.list) to the edit_line bundle and use 
> getindices() inside that bundle, so that you get
> 
> edit file
>    for each index do
>      edit lines
> 
> See an example like set_variable_values in the  COPBL
> 
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@cfengine.org
> https://cfengine.org/mailman/listinfo/help-cfengine
                                          
_________________________________________________________________
Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID27925::T:WLMTAGL:ON:WL:en-US:WM_HMP:032010_1
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to