diff options
author | John McCrae <john.mccrae@progress.com> | 2022-10-05 06:31:41 +0000 |
---|---|---|
committer | John McCrae <john.mccrae@progress.com> | 2022-10-05 06:31:41 +0000 |
commit | c79aea2f2d21e86b5532147564e33272eff85962 (patch) | |
tree | d7ae6de18a27d706dd4e4b2b593941ef98119658 | |
parent | 76f6b93b365ecea958a037665cf50a1fe07a6b50 (diff) | |
download | chef-jfm/server2012_testing_2.tar.gz |
Adjusted the method name and added a warning in per feedbackjfm/server2012_testing_2
Signed-off-by: John McCrae <john.mccrae@progress.com>
-rw-r--r-- | lib/chef/win32/handle.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/win32/handle.rb b/lib/chef/win32/handle.rb index fe6d952b48..46c63fb38d 100644 --- a/lib/chef/win32/handle.rb +++ b/lib/chef/win32/handle.rb @@ -36,13 +36,13 @@ class Chef def initialize(handle) @handle = handle - @is_2012 ||= win2012notr2? + @is_2012 ||= win2012_not_r2? ObjectSpace.define_finalizer(self, Handle.close_handle_finalizer(handle)) end attr_reader :handle - def win2012notr2? + def win2012_not_r2? os = powershell_exec("(Get-CimInstance win32_operatingsystem).Caption").result os.match(/2012/) && !os.match(/R2/) ? true : false end |