summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVivek Singh <vivek.singh@msystechnologies.com>2019-02-07 12:49:49 +0530
committerVivek Singh <vivek.singh@msystechnologies.com>2019-02-08 22:51:41 +0530
commit35be84501c549800ccdbd8570befcbd3099048dd (patch)
tree29a80cb51e765364b2ee0415b70d53fda05134a2
parentc3ee6dfcd867064ccbf07f564b613b128859eba5 (diff)
downloadchef-35be84501c549800ccdbd8570befcbd3099048dd.tar.gz
Use cleanpath helper method instead canonical_path
-Previously to make user_home uniform canonical_path is used that it implemented in a way to add an absolute path. Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
-rw-r--r--chef-config/lib/chef-config/config.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/chef-config/lib/chef-config/config.rb b/chef-config/lib/chef-config/config.rb
index f6e481b244..1c921eac72 100644
--- a/chef-config/lib/chef-config/config.rb
+++ b/chef-config/lib/chef-config/config.rb
@@ -122,7 +122,7 @@ module ChefConfig
if config_file
PathHelper.dirname(PathHelper.canonical_path(config_file, false))
else
- PathHelper.join(PathHelper.canonical_path(user_home, false), ".chef", "")
+ PathHelper.join(PathHelper.cleanpath(user_home), ".chef", "")
end
end