diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-02-28 15:15:41 -0800 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-02-28 15:26:10 -0800 |
commit | 7858749e693eb71acb1b1bb9427f8ed0b05e4d4f (patch) | |
tree | 99f37f465a3e68fa5d3073a7805bc6ffd6c76f93 /lib/chef/platform | |
parent | a60b4aec184b97986dde9ed577b9558d10fea951 (diff) | |
download | chef-7858749e693eb71acb1b1bb9427f8ed0b05e4d4f.tar.gz |
Deprecate Chef::Platform.supports_msi?remove_msi_checks
This was put in place for Windows Server Nano which didn't support MSIs. That's not a platform anymore so it can go. Here's the original PR: https://github.com/chef/chef/pull/3939
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/platform')
-rw-r--r-- | lib/chef/platform/query_helpers.rb | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/lib/chef/platform/query_helpers.rb b/lib/chef/platform/query_helpers.rb index 169d762a45..477efd1f22 100644 --- a/lib/chef/platform/query_helpers.rb +++ b/lib/chef/platform/query_helpers.rb @@ -1,6 +1,6 @@ # # Author:: Adam Jacob (<adam@chef.io>) -# Copyright:: Copyright 2008-2019, Chef Software Inc. +# Copyright:: Copyright 2008-2020, Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -31,21 +31,11 @@ class Chef false end + # @deprecated we added this method due to Windows Server Nano, which is no longer a platform def supports_msi? return false unless windows? - require "win32/registry" unless defined?(Win32::Registry) - - key = "System\\CurrentControlSet\\Services\\msiserver" - access = ::Win32::Registry::KEY_QUERY_VALUE - - begin - ::Win32::Registry::HKEY_LOCAL_MACHINE.open(key, access) do |reg| - true - end - rescue ::Win32::Registry::Error - false - end + true end # @deprecated we don't support any release of Windows that isn't PS 3+ |