Hi there,
I'm sure that I must have missed something on the list, though I've
searched the archives and googled a fair bit... but it seems that
somewhere along the line groups in editfiles have become somewhat
broken; I don't seem to be able to create a working BeginGroup...
EndGroup stanza, I always get an error "EndGroup without Begin"
I've tried creating trivial cfengine scripts such as:
control:
actionsequence = ( editfiles )
editfiles:
{ /tmp/foo.txt
BeginGroupIfLineContaining "bar"
DefineInGroup "BAR"
EndGroup
}
where /tmp/foo.txt contains:
foo
bar
baz
which produces:
cfagent -f ./test.cf
cf:cfengine::./test.cf:7: DefineInGroup outside a group
cf:cfengine::./test.cf:8: EndGroup without Begin
cf:cfengine::./test.cf:9: Editfiles Begin/End mismatch before or at line
I'm running cfengine 2.1.19p1
--
There is nothing more important to good government than good education.
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
http://cfengine.org/mailman/listinfo/help-cfengine