summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
author(no author) <(no author)@980ebf18-57e1-0310-9a29-db15c13687c0>2007-08-12 07:53:13 +0000
committer(no author) <(no author)@980ebf18-57e1-0310-9a29-db15c13687c0>2007-08-12 07:53:13 +0000
commit7e4f270852f18d721083e97c43efda9c30ad6a1d (patch)
tree714b12976fb41d199a0e78ba6bea86ce2c14a04d /lib/puppet
parent01b21ae783198102d9c6caac0588754068f4ff22 (diff)
downloadpuppet-7e4f270852f18d721083e97c43efda9c30ad6a1d.tar.gz
puppet-7e4f270852f18d721083e97c43efda9c30ad6a1d.tar.xz
puppet-7e4f270852f18d721083e97c43efda9c30ad6a1d.zip
Actually honour :namevar => true on newparam calls
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2769 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/metatype/attributes.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/puppet/metatype/attributes.rb b/lib/puppet/metatype/attributes.rb
index 189768090..0ceb7f161 100644
--- a/lib/puppet/metatype/attributes.rb
+++ b/lib/puppet/metatype/attributes.rb
@@ -252,6 +252,8 @@ class Puppet::Type
param.required_features = options[:required_features]
end
+ param.isnamevar if options[:namevar]
+
# These might be enabled later.
# define_method(name) do
# @parameters[name].value