Re: insert_lines locator doesn't work

2011-02-04 Thread Mark Burgess
I thought we had added a check for this issue, but it didn't happen in all cases. So now I've ammended that in svn On 02/04/2011 10:27 AM, dennis.caboo...@snow.nl wrote: > The problem still exists in 3.1.4-1. The line will append at the end of > the file instead of using the locator. :-( > > >

Re: insert_lines locator doesn't work

2011-02-04 Thread Mark Burgess
Dennis, the problem is in your code. You have quotes around your body reference in the example you sent me now bundle edit_line AppendIfNoLine(proxy_lines) { insert_lines: "$(proxy_lines)" location => "append"; } Take away the quotes from "append" and it works. What is puzzling is why yo

Re: insert_lines locator doesn't work

2011-02-04 Thread Dennis . Cabooter
The problem still exists in 3.1.4-1. The line will append at the end of the file instead of using the locator. :-( > I've had this exact problem and do not know how to fix it. It has caused > me > to stop using file editing all together and even templates. Since any > file > that has sections ca

Re: insert_lines locator doesn't work

2011-01-27 Thread Mark Burgess
I suspect you are using an old version. On 01/27/2011 03:15 PM, Bryan Ramirez wrote: > I've had this exact problem and do not know how to fix it. It has caused > me to stop using file editing all together and even templates. Since > any file that has sections cannot be counted on to be sane afte

Re: insert_lines locator doesn't work

2011-01-27 Thread Bryan Ramirez
I've had this exact problem and do not know how to fix it. It has caused me to stop using file editing all together and even templates. Since any file that has sections cannot be counted on to be sane after cf-agent runs. On Tue, Jan 11, 2011 at 5:45 AM, wrote: > The following syntax should wor

Cfengine Help: Re: insert_lines locator doesn't work

2011-01-12 Thread no-reply
Forum: Cfengine Help Subject: Re: insert_lines locator doesn't work Author: bbomgardner Link to topic: https://cfengine.com/forum/read.php?3,20075,20086#msg-20086 I'm puzzled by this as well... Using select_region is an alternative for editing a file like this. You could use this