summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCrae <john.mccrae@progress.com>2022-01-04 14:42:07 -0800
committerJohn McCrae <john.mccrae@progress.com>2022-01-18 13:32:41 -0800
commit07b30a57f658035f992f12165dbe465857051592 (patch)
tree88379eb3c4c9b2c6f59059910eee791a5b8dd55a
parent2bcaa2db47d3365edd9d7b33a3804ccb942d5a00 (diff)
downloadchef-07b30a57f658035f992f12165dbe465857051592.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.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/chef/mixin/powershell_exec.rb b/lib/chef/mixin/powershell_exec.rb
index 783e87354b..c76c891054 100644
--- a/lib/chef/mixin/powershell_exec.rb
+++ b/lib/chef/mixin/powershell_exec.rb
@@ -98,7 +98,9 @@ end
class Chef
module Mixin
module PowershellExec
- include Chef_PowerShell::ChefPowerShell::PowerShellExec
+ if ChefUtils.windows?
+ include Chef_PowerShell::ChefPowerShell::PowerShellExec
+ end
end
end
end