summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLance Albertson <lance@osuosl.org>2022-05-25 10:44:33 -0700
committerLance Albertson <lance@osuosl.org>2022-05-25 10:44:33 -0700
commit32469bcede193fb82f60069bb6d51d00fc38a739 (patch)
treee289255ca854a6b9813c2d5884e785f87b721cb8
parent6c9e276fa8c3de273c3bb742be2d64934046bbfb (diff)
downloadchef-32469bcede193fb82f60069bb6d51d00fc38a739.tar.gz
Use dist constant when invoking knife configure
This will resolve https://gitlab.com/cinc-project/distribution/workstation/-/issues/22. Signed-off-by: Lance Albertson <lance@osuosl.org>
-rw-r--r--knife/lib/chef/knife/configure.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/knife/lib/chef/knife/configure.rb b/knife/lib/chef/knife/configure.rb
index 9c806b4af6..e49a01277c 100644
--- a/knife/lib/chef/knife/configure.rb
+++ b/knife/lib/chef/knife/configure.rb
@@ -138,7 +138,7 @@ class Chef
# @return [String] the path to the user's .chef directory
def chef_config_path
- @chef_config_path ||= ChefConfig::PathHelper.home(".chef")
+ @chef_config_path ||= ChefConfig::PathHelper.home(ChefUtils::Dist::Infra::USER_CONF_DIR)
end
# @return [String] the full path to the config file (credential file)