summaryrefslogtreecommitdiff
path: root/lib/chef/config.rb
diff options
context:
space:
mode:
authorClaire McQuin <claire@getchef.com>2014-05-21 10:25:32 -0700
committerClaire McQuin <claire@getchef.com>2014-05-22 12:16:36 -0700
commit08f3547a39cb2390425587860208513cba9eab3f (patch)
treedd44955acded66d3646671d7d21ce9ba3b11e039 /lib/chef/config.rb
parent7d2891419ef04288ddd7bb2322df41cc9bd203dd (diff)
downloadchef-08f3547a39cb2390425587860208513cba9eab3f.tar.gz
change backup cache location to user's .chef
Diffstat (limited to 'lib/chef/config.rb')
-rw-r--r--lib/chef/config.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/config.rb b/lib/chef/config.rb
index fcab13ca5e..8c6aec0d34 100644
--- a/lib/chef/config.rb
+++ b/lib/chef/config.rb
@@ -247,7 +247,7 @@ class Chef
# Otherwise, we'll create .chef.d under the user's home directory and use that as
# the cache path.
unless path_accessible?(primary_cache_path) || path_accessible?(primary_cache_root)
- secondary_cache_path = File.join(user_home, '.chef.d')
+ secondary_cache_path = File.join(user_home, '.chef')
secondary_cache_path.gsub!(File::SEPARATOR, platform_path_separator) # Safety, mainly for Windows...
Chef::Log.warn("Unable to access cache at #{primary_cache_path}. Switching cache to #{secondary_cache_path}")
secondary_cache_path