diff options
-rw-r--r-- | lib/puppet/type.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/type.rb b/lib/puppet/type.rb index 9b68d9f5f..1f8af8e82 100644 --- a/lib/puppet/type.rb +++ b/lib/puppet/type.rb @@ -595,9 +595,9 @@ class Type < Puppet::Element # Create a new parameter. Requires a block and a name, stores it in the # @parameters array, and does some basic checking on it. - def self.newparam(name, &block) + def self.newparam(name, options = {}, &block) param = genclass(name, - :parent => Puppet::Parameter, + :parent => options[:parent] || Puppet::Parameter, :attributes => { :element => self }, :block => block, :prefix => "Parameter", |