On Mon, 21 May 2012 15:21:20 -0400 Ted Zlatanov <t...@lifelogs.com> wrote:
TZ> But it seems like `this.promise_filename' refers to the top-level TZ> (i.e. runme.cf) filename, even though the vcs_freshclone promises are TZ> made in a different file. This makes it impossible to find templates TZ> relative to the sketch installation; e.g. when TZ> bundle agent vcs_freshclone(prefix) TZ> { TZ> vars: TZ> "bundle_home" string => dirname("$(this.promise_filename)"), TZ> policy => "overridable"; TZ> } TZ> is called from A/runme.cf, while B/vcs_freshclone.cf has the actual TZ> bundle definition, $(bundle_home) will have A and not B. I pushed a fix for this; now cfsketch.pl will force-feed the file location as $($(prefix)bundle_home) to the sketch. vcs_freshclone uses this mechanism and it works fine, but it means that the bundle will not work properly if you choose not to use cfsketch and then you don't provide $($(prefix)bundle_home) manually. Nick, see if you can duplicate the bug on your side and I'll open the ticket. No rush, I have the fix above in place. Ted _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine