summaryrefslogtreecommitdiff
path: root/lib/chef/chef_fs/file_system_cache.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/chef_fs/file_system_cache.rb')
-rw-r--r--lib/chef/chef_fs/file_system_cache.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/chef_fs/file_system_cache.rb b/lib/chef/chef_fs/file_system_cache.rb
index e36dbbce7c..0024a49098 100644
--- a/lib/chef/chef_fs/file_system_cache.rb
+++ b/lib/chef/chef_fs/file_system_cache.rb
@@ -73,6 +73,7 @@ class Chef
def _get_parent(path)
parts = ChefFS::PathUtils.split(path)
return nil if parts.nil? || parts.length < 2
+
ChefFS::PathUtils.join(*parts[0..-2])
end
end