summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTensibai <Tensibai@users.noreply.github.com>2014-03-28 16:58:34 +0100
committerBryan McLellan <btm@getchef.com>2014-04-10 07:14:08 -0700
commit34f7ada792168aa878944cdf1ec23324aeaf7717 (patch)
tree5a9b1c9d8e678eca733a4d59af30e23a018c7e5d /lib
parent07f6316d58e410ed9065e57fd2b0f4c0fdfd8c97 (diff)
downloadchef-34f7ada792168aa878944cdf1ec23324aeaf7717.tar.gz
Update local_file.rb
Diffstat (limited to 'lib')
-rw-r--r--lib/chef/provider/remote_file/local_file.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/remote_file/local_file.rb b/lib/chef/provider/remote_file/local_file.rb
index ccfcc3d43f..a5ff9c3121 100644
--- a/lib/chef/provider/remote_file/local_file.rb
+++ b/lib/chef/provider/remote_file/local_file.rb
@@ -40,7 +40,7 @@ class Chef
# Fetches the file at uri, returning a Tempfile-like File handle
def fetch
- Chef::Platform.windows? ? source_path = fix_windows_path(uri.path) : source_path = uri.path
+ Chef::Platform.windows? ? source_path = fix_windows_path(source_path) : source_path = uri.path
tempfile = Chef::FileContentManagement::Tempfile.new(new_resource).tempfile
Chef::Log.debug("#{new_resource} staging #{uri.path} to #{tempfile.path}")
FileUtils.cp(source_path, tempfile.path)