summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/parser/templatewrapper.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/puppet/parser/templatewrapper.rb b/lib/puppet/parser/templatewrapper.rb
index 4f044befc..4790cea30 100644
--- a/lib/puppet/parser/templatewrapper.rb
+++ b/lib/puppet/parser/templatewrapper.rb
@@ -19,14 +19,14 @@ class Puppet::Parser::TemplateWrapper
@scope.parser.watch_file(@file)
end
end
-
+
# Should return true if a variable is defined, false if it is not
def has_variable?(name)
- if @scope.lookupvar(name.to_s, false) != :undefined
- true
- else
- false
- end
+ if @scope.lookupvar(name.to_s, false) != :undefined
+ true
+ else
+ false
+ end
end
# Ruby treats variables like methods, so we can cheat here and