I am having troubles using some of the very basic examples listed in the C3 Solutions guide (url below). When testing "3.1 Add lines to a file"
the output file contains....

# cat /tmp/test_insert
@(insert.lines)

# /var/log/messages
List parameter "insert.lines" not found while constructing scope "append_if_no_line" - use @(scope.variable) in calling reference

# CFE version
--------------------
cfengine-3.0.4-1


Any thoughts? Thank you for time and assistance.





My config for this example is..
-----------------------------------------
bundle agent TestWrite

{
vars:

"lines" slist => { "One potato", "Two potato",
"Three potatoe", "Four" };

files:

"/tmp/test_insert"

create => "true",
edit_line => append_if_no_line("@(insert.lines)");

}
-------------------------------


http://www.cfengine.org/manuals/cf3-solutions.html#Add-lines-to-a-file
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to