Issue #20452 has been updated by Rob Nelson. Status changed from Unreviewed to Accepted Assignee set to Erik Dalén
Eric, assigning this to you as part of the October Triage-a-thon. ---------------------------------------- Feature #20452: Disable dynamic scoping of resource defaults https://projects.puppetlabs.com/issues/20452#change-98397 * Author: Erik Dalén * Status: Accepted * Priority: Normal * Assignee: Erik Dalén * Category: compiler * Target version: Waldorf * Affected Puppet version: * Keywords: * Branch: ---------------------------------------- I couldn't find any issue tracking this, so I thought best to add one. Dynamic scoping of resource defaults is just as nasty and bad as dynamic scoping of variables and should really be removed. So that they can only be taken from current scope or top scope. The effects of this code might surprise many users: class foo { file { "/tmp/foo": ensure => file } } class bar { include foo File { mode => '0700' } } include bar -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/groups/opt_out.
