summaryrefslogtreecommitdiffstats
path: root/lib/puppet/parser/ast/objectdef.rb
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-08-28 04:50:59 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-08-28 04:50:59 +0000
commitad32b716d82576c98e708e6dbbcec60f0372e54c (patch)
tree1509e5afdd1e174816b8e0f2f14aba019c627b6c /lib/puppet/parser/ast/objectdef.rb
parentdb0be8e38044b8aaaf9469c5c461c84295b55732 (diff)
downloadpuppet-ad32b716d82576c98e708e6dbbcec60f0372e54c.tar.gz
puppet-ad32b716d82576c98e708e6dbbcec60f0372e54c.tar.xz
puppet-ad32b716d82576c98e708e6dbbcec60f0372e54c.zip
Tracking down some weird bugs that managed to creep into the parser. I expect that the main ones were a result of the If support.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1494 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/parser/ast/objectdef.rb')
-rw-r--r--lib/puppet/parser/ast/objectdef.rb12
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/puppet/parser/ast/objectdef.rb b/lib/puppet/parser/ast/objectdef.rb
index 63577b60d..cdcbd1aca 100644
--- a/lib/puppet/parser/ast/objectdef.rb
+++ b/lib/puppet/parser/ast/objectdef.rb
@@ -33,12 +33,13 @@ class Puppet::Parser::AST
# Get our type and name.
objtype = @type.safeevaluate(:scope => scope)
- if objtype == "super"
- objtype = supertype()
- @subtype = true
- else
+ # Disable definition inheritance, for now. 8/27/06, luke
+ #if objtype == "super"
+ # objtype = supertype()
+ # @subtype = true
+ #else
@subtype = false
- end
+ #end
# If the type was a variable, we wouldn't have typechecked yet.
# Do it now, if so.
@@ -70,6 +71,7 @@ class Puppet::Parser::AST
}
# Now collect info from our parent.
+ parentname = nil
if @subtype
parentname = supersetup(hash)
end