summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2020-12-15 16:03:48 -0800
committerGitHub <noreply@github.com>2020-12-15 16:03:48 -0800
commit90a8b77705ec7146a2d84b0a34a1e9d22441bce2 (patch)
treec4442ab5dcdb9102dd6cd454b679a2674cb6fc34
parent34610f3efad8c8424760014a7ade4c721d3e12c7 (diff)
parent3adefc9a15b5edb40e84c4696abef767ec39e6b2 (diff)
downloadchef-90a8b77705ec7146a2d84b0a34a1e9d22441bce2.tar.gz
Merge pull request #10740 from axelrtgs/bugfix/windowsbootstrap
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/knife/core/windows_bootstrap_context.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife/core/windows_bootstrap_context.rb b/lib/chef/knife/core/windows_bootstrap_context.rb
index 4b40d5bfb9..fa8b43f383 100644
--- a/lib/chef/knife/core/windows_bootstrap_context.rb
+++ b/lib/chef/knife/core/windows_bootstrap_context.rb
@@ -140,7 +140,7 @@ class Chef
end
unless trusted_certs_script.empty?
- client_rb << %Q{trusted_certs_dir "#{ChefConfig::Config.etc_chef_dir(windows: true)}/trusted_certs"\n}
+ client_rb << %Q{trusted_certs_dir "#{ChefConfig::PathHelper.escapepath(ChefConfig::Config.etc_chef_dir(windows: true))}\\\\trusted_certs"\n}
end
if chef_config[:fips]