diff options
author | Seth Chisamore <schisamo@opscode.com> | 2012-01-23 21:59:52 -0800 |
---|---|---|
committer | Seth Chisamore <schisamo@opscode.com> | 2012-01-23 21:59:52 -0800 |
commit | 087030b7e4472c9bd32e232b6ff4ed60e785a0a1 (patch) | |
tree | effb51f0f374284fac147e3303bd198e3eb494b7 | |
parent | 42ced1f15801c544cd6a07434a305bc4a55c5f67 (diff) | |
download | chef-087030b7e4472c9bd32e232b6ff4ed60e785a0a1.tar.gz |
[CHEF-2883] ensure path method is called on incoming key
-rw-r--r-- | chef/lib/chef/monkey_patches/moneta.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chef/lib/chef/monkey_patches/moneta.rb b/chef/lib/chef/monkey_patches/moneta.rb index 5d2b5816c3..1c2895db56 100644 --- a/chef/lib/chef/monkey_patches/moneta.rb +++ b/chef/lib/chef/monkey_patches/moneta.rb @@ -41,7 +41,7 @@ module Moneta if ::File.respond_to?(:binread) data = ::File.binread(path(key)) else - data = ::File.open(file,"rb") { |f| f.read } + data = ::File.open(path(key),"rb") { |f| f.read } end Marshal.load(data) end |