summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2010-12-31 11:55:38 +0100
committermh <mh@immerda.ch>2010-12-31 12:53:55 +0100
commit7e7eb1d652a97b73e09c26c5c04e21e80d8706ab (patch)
tree2333866762e58319108201138c262d6acaca4a5d /lib
parentb5e2aff27ba8711a187b1a4d73380aeeb4387c42 (diff)
rather directly read the file than use the puppet function
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/parser/functions/tfile.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/parser/functions/tfile.rb b/lib/puppet/parser/functions/tfile.rb
index 2e792f9..a984892 100644
--- a/lib/puppet/parser/functions/tfile.rb
+++ b/lib/puppet/parser/functions/tfile.rb
@@ -14,5 +14,5 @@ Puppet::Parser::Functions::newfunction(
require 'fileutils'
FileUtils.touch(path)
end
- function_file([path])
+ File.read(path)
end