From 7756f9a57fa83e811888298edd339978bb6a9c83 Mon Sep 17 00:00:00 2001 From: luke Date: Thu, 9 Mar 2006 18:12:15 +0000 Subject: Fixing #97. I was wrong about the object type I had, so I was calling "type" with no arguments, which was causing the bug. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@995 980ebf18-57e1-0310-9a29-db15c13687c0 --- lib/puppet/parser/ast/objectdef.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/puppet/parser/ast') diff --git a/lib/puppet/parser/ast/objectdef.rb b/lib/puppet/parser/ast/objectdef.rb index 7b7bf6648..0a9ba23cd 100644 --- a/lib/puppet/parser/ast/objectdef.rb +++ b/lib/puppet/parser/ast/objectdef.rb @@ -192,7 +192,7 @@ class Puppet::Parser::AST unless type.validattr?(pname) error = Puppet::ParseError.new( "Invalid parameter '%s' for type '%s'" % - [pname,type.type] + [pname, type.name] ) error.line = self.line error.file = self.file -- cgit