[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, upstream, updated. 0.25.5-639-g8f94f35
test branch
puppet-dev at googlegroups.com
Wed Jul 14 10:31:20 UTC 2010
The following commit has been merged in the upstream branch:
commit 9154acadf336db7f231df524749f987e885f5b0c
Author: Jesse Wolfe <jes5199 at gmail.com>
Date: Wed Apr 7 11:59:45 2010 -0700
Since the types stored in resource's @parameters have changed,
we need to also change include? method to be more robust.
diff --git a/lib/puppet/resource.rb b/lib/puppet/resource.rb
index 91dd547..e733f3e 100644
--- a/lib/puppet/resource.rb
+++ b/lib/puppet/resource.rb
@@ -101,6 +101,10 @@ class Puppet::Resource
@parameters.each { |p,v| yield p, v }
end
+ def include?(parameter)
+ super || @parameters.keys.include?( parameter_name(parameter) )
+ end
+
%w{exported virtual}.each do |m|
define_method(m+"?") do
self.send(m)
--
Puppet packaging for Debian
More information about the Pkg-puppet-devel
mailing list