summaryrefslogtreecommitdiff
path: root/lib/chef/provider.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/provider.rb')
-rw-r--r--lib/chef/provider.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider.rb b/lib/chef/provider.rb
index 5fda36ac63..cf5c5c983e 100644
--- a/lib/chef/provider.rb
+++ b/lib/chef/provider.rb
@@ -113,7 +113,7 @@ class Chef
dirname = ::File.dirname(partial)
basename = ::File.basename(partial, ".rb")
basename = basename[1..] if basename.start_with?("_")
- class_eval IO.read(::File.expand_path("#{dirname}/_#{basename}.rb", ::File.dirname(caller_locations.first.absolute_path)))
+ class_eval IO.read(::File.expand_path("#{dirname}/_#{basename}.rb", ::File.dirname(caller_locations.first.path)))
end
# delegate to the resource