summaryrefslogtreecommitdiffstats
path: root/lib/puppet/parser/ast/component.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/parser/ast/component.rb')
-rw-r--r--lib/puppet/parser/ast/component.rb10
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/puppet/parser/ast/component.rb b/lib/puppet/parser/ast/component.rb
index aa29624fd..0ecdb1d02 100644
--- a/lib/puppet/parser/ast/component.rb
+++ b/lib/puppet/parser/ast/component.rb
@@ -10,7 +10,7 @@ class Puppet::Parser::AST
# The class name
@name = :component
- attr_accessor :type, :args, :code, :scope, :autoname, :keyword
+ attr_accessor :type, :args, :code, :scope, :keyword
#def evaluate(scope,hash,objtype,objname)
def evaluate(hash)
@@ -22,8 +22,7 @@ class Puppet::Parser::AST
scope = scope.newscope(
:type => @type,
:name => objname,
- :keyword => self.keyword,
- :autoname => self.autoname
+ :keyword => self.keyword
)
if hash[:newcontext]
#scope.warning "Setting context to %s" % self.object_id
@@ -40,11 +39,6 @@ class Puppet::Parser::AST
#scope.keyword = self.keyword
- # Retain the fact that we were autonamed, if so
- if self.autoname
- scope.autoname = true
- end
-
#if self.is_a?(Node)
# scope.isnodescope
#end