Sven- This was reported as a bug on 2010/02/26 and reported as partially resolved 2010/03/19 in https://cfengine.com/bugtracker/view.php?id=58 - here is the resolution notice: "This can only be partially fixed. The reason is that the precise knowledge of this.promiser comes too late to use in the comment expansion. All we can know is the promiser pattern described in the promise. If the promiser is a regex, for instance, we cannot say what that expands to."
Possibly not what you wanted, but at least it's an answer... -Dan On Jul 14, 2011, at 7:19 AM, Sven Hergenhahn wrote: > Hi, > > I just found out that ${this.promiser} is not resolved in comments whereas > $(this.promiser) is > > > files: > any:: > "${tmpdirs}" > handle => "fix_tmp_dirs", > comment => "Fix permissions of tmpdir $(this.promiser)", > perms => m("1777"); > > "${tmpdirs}" > handle => "fix_tmp_dirs", > comment => "Fix permissions of tmpdir ${this.promiser}", > perms => m("1777"); > > > > cf3> ......................................................... > cf3> Promise handle: fix_tmp_dirs > cf3> Promise made by: /var/tmp > cf3> > cf3> Comment: Fix permissions of tmpdir ${this.promiser} > cf3> ......................................................... > cf3> > cf3> -> Using literal pathtype for /var/tmp > cf3> -> Handling file existence constraints on /var/tmp > cf3> -> File permissions on /var/tmp as promised > cf3> -> Handling file existence constraints on /var/tmp > cf3> -> File permissions on /var/tmp as promised > cf3> > cf3> ......................................................... > cf3> Promise handle: fix_tmp_dirs > cf3> Promise made by: /var/tmp > cf3> > cf3> Comment: Fix permissions of tmpdir /var/tmp > cf3> ......................................................... > cf3> > cf3> -> Using literal pathtype for /var/tmp > cf3> -> Handling file existence constraints on /var/tmp > cf3> -> File permissions on /var/tmp as promised > cf3> -> Handling file existence constraints on /var/tmp > cf3> -> File permissions on /var/tmp as promised > > Is that by design or is it a bug? > > Cheers, > Sven _______________________________________________ > 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