summaryrefslogtreecommitdiffstats
path: root/lib/puppet/parameter.rb
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-03-19 21:29:08 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-03-19 21:29:08 +0000
commit60ea7d2a9df65f3c2ed492ec4447420c5e5151fe (patch)
treede99ac27de31df3cadc4b721406b579404106d9c /lib/puppet/parameter.rb
parent3d17685f9954b584cf84a6fe224b2513007108f0 (diff)
downloadpuppet-60ea7d2a9df65f3c2ed492ec4447420c5e5151fe.tar.gz
puppet-60ea7d2a9df65f3c2ed492ec4447420c5e5151fe.tar.xz
puppet-60ea7d2a9df65f3c2ed492ec4447420c5e5151fe.zip
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
Diffstat (limited to 'lib/puppet/parameter.rb')
-rw-r--r--lib/puppet/parameter.rb6
1 files changed, 6 insertions, 0 deletions
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