summaryrefslogtreecommitdiff
path: root/lib/chef/provider/file.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@opscode.com>2013-04-11 15:05:45 -0700
committerLamont Granquist <lamont@opscode.com>2013-04-11 15:05:45 -0700
commit9d4445a62053665080186ac6098315841d066a46 (patch)
tree0b4c1ebd798d48cf6e41cc809cf93a61b72e919b /lib/chef/provider/file.rb
parent63beb4881bca18ae436afac77a96e55822f9a214 (diff)
downloadchef-9d4445a62053665080186ac6098315841d066a46.tar.gz
CHEF-4082: mutating the new resource is bad, and ruby handles both
kinds of path slashes just fine. unsure of why this was put here to begin with and its breaking stuff, so remove it.
Diffstat (limited to 'lib/chef/provider/file.rb')
-rw-r--r--lib/chef/provider/file.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/chef/provider/file.rb b/lib/chef/provider/file.rb
index 8d59278e52..e14bb5001c 100644
--- a/lib/chef/provider/file.rb
+++ b/lib/chef/provider/file.rb
@@ -63,7 +63,6 @@ class Chef
def load_current_resource
# Let children resources override constructing the @current_resource
@current_resource ||= Chef::Resource::File.new(@new_resource.name)
- @new_resource.path.gsub!(/\\/, "/") # for Windows
@current_resource.path(@new_resource.path)
if ::File.exists?(@current_resource.path)
if @action != :create_if_missing && @current_resource.respond_to?(:checksum) && ::File.file?(@current_resource.path)