summaryrefslogtreecommitdiff
path: root/lib/chef/mixin/template.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/mixin/template.rb')
-rw-r--r--lib/chef/mixin/template.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/mixin/template.rb b/lib/chef/mixin/template.rb
index 54aa65c488..9208ce057e 100644
--- a/lib/chef/mixin/template.rb
+++ b/lib/chef/mixin/template.rb
@@ -31,7 +31,7 @@ class Chef
if IO.respond_to?(:binread)
IO.binread(file)
else
- IO.read(file)
+ File.open(file, "rb") {|f| f.read }
end
end