From 2be25d51f38f53c92bcc6b9688344fdb1c06f48f Mon Sep 17 00:00:00 2001 From: luke Date: Fri, 10 Feb 2006 22:00:30 +0000 Subject: Making the language name a real alias. Now all objects in Puppet support specifying both the name and the namevar, or just a name and having the namevar set. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@896 980ebf18-57e1-0310-9a29-db15c13687c0 --- lib/puppet/parser/ast/objectdef.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/puppet/parser/ast') diff --git a/lib/puppet/parser/ast/objectdef.rb b/lib/puppet/parser/ast/objectdef.rb index 8b40bda71..cf1525540 100644 --- a/lib/puppet/parser/ast/objectdef.rb +++ b/lib/puppet/parser/ast/objectdef.rb @@ -21,10 +21,10 @@ class Puppet::Parser::AST when Puppet::Type: raise Puppet::Error, "Built-in types must be provided with a name" - when HostClass: + when Node: return type else - Puppet.info "Autogenerating name for object of type %s" % + Puppet.debug "Autogenerating name for object of type %s" % type return [type, "-", self.object_id].join("") end -- cgit