summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorNick Lewis <nick@puppetlabs.com>2010-08-03 17:58:52 -0700
committerMarkus Roberts <Markus@reality.com>2010-08-04 17:52:35 -0700
commit037bb329f090ce86227fc62b51d081831fa9de03 (patch)
treefe333006162b62ed27f1fed6f20a49001cf0c307 /lib
parent0e4bc62716a37cc82a8a5dbb5865ac7f45cf71b2 (diff)
downloadpuppet-037bb329f090ce86227fc62b51d081831fa9de03.tar.gz
puppet-037bb329f090ce86227fc62b51d081831fa9de03.tar.xz
puppet-037bb329f090ce86227fc62b51d081831fa9de03.zip
[#4404] Remove requirement for source on Parser::Resource::Param
Stage[main] is created without an associated source, to which Parser::Resource::Param objects. This patch observes that the source attribute of both Parser::Resource and Parser::Resource::Param seem not to be used anywhere, and removes the requirement that it be supplied.
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/parser/resource/param.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/parser/resource/param.rb b/lib/puppet/parser/resource/param.rb
index af2d98fe8..c28322337 100644
--- a/lib/puppet/parser/resource/param.rb
+++ b/lib/puppet/parser/resource/param.rb
@@ -13,7 +13,7 @@ class Puppet::Parser::Resource::Param
def initialize(hash)
set_options(hash)
- requiredopts(:name, :value, :source)
+ requiredopts(:name, :value)
@name = symbolize(@name)
end