diff options
author | Luke Kanies <luke@madstop.com> | 2007-08-27 17:38:39 -0500 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2007-08-27 17:38:39 -0500 |
commit | 2625eb1db70361f9f14710ccc36090374ee282fb (patch) | |
tree | 7fa8a8f8fe2d813c4b22a035159b466048715bb2 /lib/puppet/dsl.rb | |
parent | 1de5ae0da0d336f1b96ceaac5aca1dfed4169460 (diff) | |
download | puppet-2625eb1db70361f9f14710ccc36090374ee282fb.tar.gz puppet-2625eb1db70361f9f14710ccc36090374ee282fb.tar.xz puppet-2625eb1db70361f9f14710ccc36090374ee282fb.zip |
Making a couple of small bugfixes in the configuration subsystem
Diffstat (limited to 'lib/puppet/dsl.rb')
-rw-r--r-- | lib/puppet/dsl.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/dsl.rb b/lib/puppet/dsl.rb index bd0fcbf96..793578bca 100644 --- a/lib/puppet/dsl.rb +++ b/lib/puppet/dsl.rb @@ -260,8 +260,8 @@ module Puppet @node = Puppet::Node.new(Facter.value(:hostname)) @node.parameters = Facter.to_hash @interp = Puppet::Parser::Interpreter.new :Code => "" - @config = Puppet::Parser::Configuration.new(@node, @interp.parser) - @scope = @config.topscope + @compile = Puppet::Parser::Compile.new(@node, @interp.send(:parser, Puppet[:environment])) + @scope = @compile.topscope end @scope end |