Does the @ method is supported by puppet 2.8? During my test, it can also be used not only ahead facts variable but also the variable in its parent class, it is this a wordaround for dynamic scope problem?
On Thu, Nov 17, 2011 at 2:39 AM, Nigel Kersten <ni...@puppetlabs.com> wrote: > > > On Wed, Nov 16, 2011 at 8:03 AM, flex <frostyn...@gmail.com> wrote: > >> Very thanks for your detailed explanation :) >> >> For the last question, what doubt me is only fact variables in a template >> which is invoked by a define will throw the warning, >> if the template is invoked by a class, everything is ok. >> > > Use it as an instance variable, like @factname > > http://projects.puppetlabs.com/issues/10248 > > We should definitely have documented this better, and we'll do so. > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > -- System Administrator, Focus on System Management and Basic Development -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.