diff options
author | John McCrae <john.mccrae@progress.com> | 2022-01-04 14:33:43 -0800 |
---|---|---|
committer | John McCrae <john.mccrae@progress.com> | 2022-01-18 13:32:41 -0800 |
commit | 2bcaa2db47d3365edd9d7b33a3804ccb942d5a00 (patch) | |
tree | 3976d05665205721f7bf3b6804d26a284dc6571d | |
parent | af0257777956496428f84d73eeb36f80dec057bc (diff) | |
download | chef-2bcaa2db47d3365edd9d7b33a3804ccb942d5a00.tar.gz |
Updated the chef client to retrieve certs from the Windows registry. Tests included. This is PR3 since I keep trashing them
Signed-off-by: John McCrae <john.mccrae@progress.com>
-rw-r--r-- | lib/chef/mixin/powershell_exec.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/chef/mixin/powershell_exec.rb b/lib/chef/mixin/powershell_exec.rb index 0482d4d0e1..783e87354b 100644 --- a/lib/chef/mixin/powershell_exec.rb +++ b/lib/chef/mixin/powershell_exec.rb @@ -91,8 +91,9 @@ # - It is not possible to impersonate another user running powershell, the # credentials of the user running Chef Client are used. # - -require "chef-powershell" +if ChefUtils.windows? + require "chef-powershell" +end class Chef module Mixin |