diff options
Diffstat (limited to 'lib/puppet/parser')
-rw-r--r-- | lib/puppet/parser/scope.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/puppet/parser/scope.rb b/lib/puppet/parser/scope.rb index 6e895afa1..747645cbc 100644 --- a/lib/puppet/parser/scope.rb +++ b/lib/puppet/parser/scope.rb @@ -14,6 +14,7 @@ module Puppet::Parser # the scope objects. class TemplateWrapper attr_accessor :scope, :file + Puppet::Util.logmethods(self) def initialize(scope, file) @scope = scope @@ -38,7 +39,8 @@ module Puppet::Parser if value = @scope.lookupvar(name.to_s) and value != :undefined and value != "" return value else - super + info "Could not find value for %s" % name + return "" end end @@ -46,6 +48,10 @@ module Puppet::Parser template = ERB.new(File.read(@file)) template.result(binding) end + + def to_s + "template[%s]" % @file + end end # This doesn't actually work right now. |