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-31 15:54:55 -0800 |
commit | 6491e8769db4ced4393223b0410d7b22f973aea3 (patch) | |
tree | e8d41f12773d7c7c4032a0a991f2e50ff16326bf /lib | |
parent | 70fe19c87371cfb7c8ca2710d8193b13ff27e0f2 (diff) | |
download | chef-6491e8769db4ced4393223b0410d7b22f973aea3.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>
Diffstat (limited to 'lib')
-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 |