summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2021-09-28 13:19:54 -0700
committerGitHub <noreply@github.com>2021-09-28 13:19:54 -0700
commit3936167a882e178cab506d830934000052620ac6 (patch)
tree213382d8f1fbad64af79ed8a44b960f07a3b8404
parentd81a6bb0f26902ae27fa3b4ab08269c47ab0b324 (diff)
parent15db63e3f7e46b47f39ed4fadc3afc253bc3a10a (diff)
downloadchef-3936167a882e178cab506d830934000052620ac6.tar.gz
Merge pull request #12094 from knightorc/Windows2022Version
Windows Server 2022 - version / build information ADD
-rw-r--r--lib/chef/win32/version.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/win32/version.rb b/lib/chef/win32/version.rb
index c83e52e4fc..fe7a80926b 100644
--- a/lib/chef/win32/version.rb
+++ b/lib/chef/win32/version.rb
@@ -49,6 +49,7 @@ class Chef
private_class_method :method_name_from_marketing_name
WIN_VERSIONS = {
+ "Windows Server 2022" => { major: 10, minor: 0, callable: lambda { |product_type, suite_mask, build_number| product_type != VER_NT_WORKSTATION && build_number >= 20348 } },
"Windows Server 2019" => { major: 10, minor: 0, callable: lambda { |product_type, suite_mask, build_number| product_type != VER_NT_WORKSTATION && build_number >= 17763 } },
"Windows 10" => { major: 10, minor: 0, callable: lambda { |product_type, suite_mask, build_number| product_type == VER_NT_WORKSTATION } },
"Windows Server 2016" => { major: 10, minor: 0, callable: lambda { |product_type, suite_mask, build_number| product_type != VER_NT_WORKSTATION && build_number <= 14393 } },