Thanks Neil.
I switches it from "insert.lines" to "lines" with the following results.
# cat /tmp/test_insert
@(lines)
/var/log/messages
Apr 29 23:24:17 usg-admin9902 cf3[12946]: List parameter "lines" not found
while constructing scope "append_if_no_line" - use @(scope.variable) in
calling ref
Forum: Cfengine Help
Subject: Re: Write to files - Problem with Examples
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,17043,17045#msg-17045
Your list is called "lines" but you refer to it later as "insert.lines".
___
Help-cf