diff options
author | skylerto <skylerclayne@gmail.com> | 2021-05-18 11:09:34 -0400 |
---|---|---|
committer | skylerto <skylerclayne@gmail.com> | 2021-05-19 11:14:30 -0400 |
commit | 9925c5e53a87a52cc202a623e559fcfdf280fa5f (patch) | |
tree | 7c9c405635b11b5b5acc0e6fef309aeab968dbd5 | |
parent | 92cc4324bb72e304b29195744ff805a13356ad47 (diff) | |
download | chef-9925c5e53a87a52cc202a623e559fcfdf280fa5f.tar.gz |
changes cache input for testing
Signed-off-by: skylerto <skylerclayne@gmail.com>
-rw-r--r-- | knife/lib/chef/knife/core/windows_bootstrap_context.rb | 4 | ||||
-rw-r--r-- | knife/spec/unit/knife/core/windows_bootstrap_context_spec.rb | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/knife/lib/chef/knife/core/windows_bootstrap_context.rb b/knife/lib/chef/knife/core/windows_bootstrap_context.rb index 61307501d4..8116c50226 100644 --- a/knife/lib/chef/knife/core/windows_bootstrap_context.rb +++ b/knife/lib/chef/knife/core/windows_bootstrap_context.rb @@ -71,8 +71,8 @@ class Chef client_rb = <<~CONFIG chef_server_url "#{chef_config[:chef_server_url]}" validation_client_name "#{chef_config[:validation_client_name]}" - file_cache_path "#{chef_config[:windows_bootstrap_file_cache_path]}" - file_backup_path "#{chef_config[:windows_bootstrap_file_backup_path]}" + file_cache_path "#{ChefConfig::PathHelper.escapepath(chef_config[:windows_bootstrap_file_cache_path] || "")}" + file_backup_path "#{ChefConfig::PathHelper.escapepath(chef_config[:windows_bootstrap_file_backup_path] || "")}" cache_options ({:path => "#{ChefConfig::PathHelper.escapepath(ChefConfig::Config.etc_chef_dir(windows: true))}\\\\cache\\\\checksums", :skip_expires => true}) CONFIG diff --git a/knife/spec/unit/knife/core/windows_bootstrap_context_spec.rb b/knife/spec/unit/knife/core/windows_bootstrap_context_spec.rb index 61d349a93d..ecbb500452 100644 --- a/knife/spec/unit/knife/core/windows_bootstrap_context_spec.rb +++ b/knife/spec/unit/knife/core/windows_bootstrap_context_spec.rb @@ -165,8 +165,8 @@ describe Chef::Knife::Core::WindowsBootstrapContext do expected = <<~EXPECTED echo.chef_server_url "http://chef.example.com:4444" echo.validation_client_name "chef-validator-testing" - echo.file_cache_path "C:\\\\chef\\\\cache" - echo.file_backup_path "C:\\\\chef\\\\backup" + echo.file_cache_path "c:/chef/cache" + echo.file_backup_path "c:/chef/backup" echo.cache_options ^({:path =^> "C:\\\\chef\\\\cache\\\\checksums", :skip_expires =^> true}^) echo.# Using default node name ^(fqdn^) echo.log_level :auto |