Re: cf3: canonify with usebundle parameters

Matt Richards <[email protected]> Fri, 1 May 2009 11:43:15 -0400
Newsgroups gmane.comp.sysutils.cfengine.bugs
Message-ID <[email protected]>
It appears the hashtable for the scope "func" is contains no entries.
I see where the hash is initialize for the "func" scope, and I see
where __filename_ is done (although __filename_ should have been
resolved by this time), but the hash still it is empty. I give up, I
am starting to debug in circles.

On Fri, May 1, 2009 at 11:02 AM, Matt Richards <[email protected]> wrote:
> I have been debugging this one for quite some time, and simplified the test case
>
> body common control {
>  bundlesequence => { test };
> }
>
> bundle agent test {
>  methods:
>    "any" usebundle=>func("/etc/motd");
> }
>
> bundle agent func(filename) {
>  vars:
>    "ccfile" string => canonify("$(filename)");
>
>  reports:
> Yr2009::
>  "filename:$(filename)";
>  "ccfile:$(ccfile)";
>