summaryrefslogtreecommitdiffstats
path: root/lib/puppet/parameter.rb
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-02-15 18:23:33 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-02-15 18:23:33 +0000
commitd1cd443e9644f945f5c55b592a2414dbaef2de5f (patch)
tree6723dc75eea5a4e19f6bfe0362db49bd8f41c651 /lib/puppet/parameter.rb
parent4df3468e920126a3d7b0ac22ab095cc5dbb785bd (diff)
downloadpuppet-d1cd443e9644f945f5c55b592a2414dbaef2de5f.tar.gz
puppet-d1cd443e9644f945f5c55b592a2414dbaef2de5f.tar.xz
puppet-d1cd443e9644f945f5c55b592a2414dbaef2de5f.zip
Fixing users so that they can use a group created by Puppet, and they also now autorequire that group. To do so, I modified Puppet::Util.gid, which required that I fix Puppet::Type#merge to support merging managed and umanaged objects, which required fixing a bug in Puppet::Type#managed?, and I also changed the ensure state to only default to a value, when the object is managed, which required that I change the defaults system to support default procs that do not return a value. In other words, lots of fixes for a smallish problem, but we are much better off now.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@912 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/parameter.rb')
-rw-r--r--lib/puppet/parameter.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/puppet/parameter.rb b/lib/puppet/parameter.rb
index a3a935b00..25789e9af 100644
--- a/lib/puppet/parameter.rb
+++ b/lib/puppet/parameter.rb
@@ -16,9 +16,9 @@ module Puppet
end
def nodefault
- undef_method :default
- #if defined_method? :default
- #end
+ if public_method_defined? :default
+ undef_method :default
+ end
end
# Store documentation for this parameter.
@@ -42,6 +42,9 @@ module Puppet
Puppet.debug "Reraising %s" % detail
raise
rescue => detail
+ if Puppet[:debug]
+ puts detail.backtrace
+ end
raise Puppet::DevError, "Munging failed for class %s: %s" %
[self.name, detail]
end