From 60ea7d2a9df65f3c2ed492ec4447420c5e5151fe Mon Sep 17 00:00:00 2001 From: luke Date: Mon, 19 Mar 2007 21:29:08 +0000 Subject: Fixing #432 - you can now manage home dirs with users. You cannot yet purge home directories, because there is still controversy over how that should be done. Also, allowdupe is now handled like a feature, which is, um, better. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2328 980ebf18-57e1-0310-9a29-db15c13687c0 --- lib/puppet/parameter.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/puppet/parameter.rb') diff --git a/lib/puppet/parameter.rb b/lib/puppet/parameter.rb index d34bc7a9e..91949e5e3 100644 --- a/lib/puppet/parameter.rb +++ b/lib/puppet/parameter.rb @@ -445,6 +445,12 @@ class Puppet::Parameter < Puppet::Element end end + # Retrieve the parent's provider. Some types don't have providers, in which + # case we return the parent object itself. + def provider + @parent.provider || @parent + end + # If there's a shadowing metaparam, instantiate it now. # This allows us to create a property or parameter with the # same name as a metaparameter, and the metaparam will only be -- cgit