On 18-01-11 15:58, Jesse Becker wrote: > On Tue, Jan 18, 2011 at 09:42:57AM -0500, Bas van der Vlies wrote:
>>> >>> Alternately, if you use a convoluted construct like this? This should >>> cause the hostseen() function and 'myhosts' variable to be evaluated >>> only once. >>> >> Thanks for tip. So we values change the key is to use the policy statement. >> This is also useful for storage constructions. > > I think so, yes. Since vars: is called 3 times with each run of > cf-agent, the values returned will be *slightly* different each time. > > As a matter of design, I wonder if it would make sense for certainly > built-in functions to either be automatically set "policy => 'free'". > Users could always override the policy statement to be 'constant' if > they need it. > > I totally agree with you. This is something that you easily forget to set for these functions. Some useful defaults will suppress these errors/warnings. -- ******************************************************************** * Bas van der Vlies e-mail: b...@sara.nl * * SARA - Academic Computing Services Amsterdam, The Netherlands * ******************************************************************** _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine