diff options
-rw-r--r-- | lib/chef/provider/remote_file/local_file.rb | 2 |
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) |