lib/puppet/parser/templatewrapper.rb in puppet-0.24.1 vs lib/puppet/parser/templatewrapper.rb in puppet-0.24.2
- old
+ new
@@ -5,10 +5,10 @@
include Puppet::Util
Puppet::Util.logmethods(self)
def initialize(scope, file)
@scope = scope
- @file = Puppet::Module::find_template(file, @scope.compile.environment)
+ @file = Puppet::Module::find_template(file, @scope.compiler.environment)
unless FileTest.exists?(@file)
raise Puppet::ParseError,
"Could not find template %s" % file
end