summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien JOVE <bastien.jove@cbp-group.com>2014-04-01 13:59:10 +0200
committerBryan McLellan <btm@getchef.com>2014-04-10 07:14:08 -0700
commit5b65de2404c645660e87507ffd9ae6955463167d (patch)
treeac74087f413a4fa98a75372fa11c750fdefdbd46
parenta104e83b026e183422631167a6158480636d0601 (diff)
downloadchef-5b65de2404c645660e87507ffd9ae6955463167d.tar.gz
Simplication of source_path assign
-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 3dab8a27fe..e78311f2c3 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
+ source_path = Chef::Platform.windows? ? fix_windows_path(uri.path) : uri.path
tempfile = Chef::FileContentManagement::Tempfile.new(new_resource).tempfile
Chef::Log.debug("#{new_resource} staging #{source_path} to #{tempfile.path}")
FileUtils.cp(source_path, tempfile.path)