aboutsummaryrefslogtreecommitdiff
path: root/lib/puppet/parser/functions/tfile.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/parser/functions/tfile.rb')
-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