From 037bb329f090ce86227fc62b51d081831fa9de03 Mon Sep 17 00:00:00 2001 From: Nick Lewis Date: Tue, 3 Aug 2010 17:58:52 -0700 Subject: [#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. --- lib/puppet/parser/resource/param.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/puppet/parser/resource/param.rb') 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 -- cgit