It didn't match because you declared one with no argument, but tried to use it with an argument. It was different indeed. You should either redeclare the body or change the way you use it in the bundle agent test.
# alternative 1 body depth_search recurse(x) { depth => "$(x)"; } or # alternative 2 bundle agent test { files: "/tmp/cfengine" copy_from => mycopy("/tmp/cfengine","192.168.78.50"), depth_search => recurse; } Cheers, --Nakarin On Mar 22, 2010, at 9:37 AM, Seifert, Christian wrote: > Thats part of my promises.cf to copy the cfengine folder to a client. But > when i start cf-agent it copies only the folder without the files inside. > > > body depth_search recurse > { > depth => "inf"; > } > > > bundle agent test { > files: > "/tmp/cfengine" > copy_from => mycopy("/tmp/cfengine","192.168.78.50"), > depth_search => recurse("inf"); > } > > The cf-agent gives me following output: > > body "recurse()" was undeclared, but used in a promise near line 29 of > /var/cfengine/inputs/promises.cf > body "recurse()" was undeclared, but used in a promise near line 29 of > /var/cfengine/inputs/promises.cf > R: Hello, world > body "recurse()" was undeclared, but used in a promise near line 29 of > /var/cfengine/inputs/promises.cf > body "recurse()" was undeclared, but used in a promise near line 29 of > /var/cfengine/inputs/promises.cf > body "recurse()" was undeclared, but used in a promise near line 29 of > /var/cfengine/inputs/promises.cf > > But i think i have declared the body recurse. > > -- > Christian Seifert > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@cfengine.org > https://cfengine.org/mailman/listinfo/help-cfengine _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine