On Thursday, August 23, 2012 1:55:15 AM UTC-7, Erik Dalén wrote:

> But I'm wondering about the section on "Reserved Variable Names" that 
> says that reusing fact names as variables in a local scope may cause 
> malfunctions. This is something I've done quite a lot without any 
> problem, is it considered unsupported and might break in future 
> versions? 
>

No no -- it's just that if you're declaring a class from someone else's 
module and they didn't use the $::fact idiom, overriding a fact might 
change the class's environment enough to break it. If you know what's going 
on in your classes you're fine, and if you're overriding a fact in a scope 
that doesn't beget any other scopes you're fine. I should rewrite that to 
be more clear!

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/y1q-alvsI2kJ.
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.

Reply via email to