diff options
author | Wade Peacock <wade.peacock@visioncritical.com> | 2021-09-28 11:26:06 -0700 |
---|---|---|
committer | Wade Peacock <wade.peacock@visioncritical.com> | 2021-09-28 11:30:50 -0700 |
commit | 15db63e3f7e46b47f39ed4fadc3afc253bc3a10a (patch) | |
tree | 174042441d8a01db2937a15da4f21126e5732a72 | |
parent | 092b0ea9fb7952b9a09aa13d1e67346a34c97ecd (diff) | |
download | chef-15db63e3f7e46b47f39ed4fadc3afc253bc3a10a.tar.gz |
Windows Server 2022 - win32_version add
Add windows server 2022 info to lib/chef/win32/version.rb
Signed-off-by: Wade Peacock <wade.peacock@alida.com>
-rw-r--r-- | lib/chef/win32/version.rb | 1 |
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 } }, |