summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLance Albertson <lance@osuosl.org>2022-05-25 23:24:00 -0700
committerGitHub <noreply@github.com>2022-05-26 11:54:00 +0530
commitafe29a74e827da1c95f4712db181ad06b7ee91a6 (patch)
treeefb5184b2cf296e3fc5d1e58debf1733c8ada9ca
parent0ca28d5e95b8428d8642460402c7f51277b27c04 (diff)
downloadchef-afe29a74e827da1c95f4712db181ad06b7ee91a6.tar.gz
Use dist constant when invoking knife configure (#12927)
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)