summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCrae <john.mccrae@progress.com>2022-01-04 14:33:43 -0800
committerJohn McCrae <john.mccrae@progress.com>2022-01-18 13:32:41 -0800
commit2bcaa2db47d3365edd9d7b33a3804ccb942d5a00 (patch)
tree3976d05665205721f7bf3b6804d26a284dc6571d
parentaf0257777956496428f84d73eeb36f80dec057bc (diff)
downloadchef-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.rb5
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