summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCrae <john.mccrae@progress.com>2023-04-28 04:44:50 +0600
committerGitHub <noreply@github.com>2023-04-28 04:44:50 +0600
commitfd785cdf3b5a12a7798fc14f01cc3d769e5342e2 (patch)
treef543ec809f941623c4129287ba8c1662dea572ea
parentf265ebde40fe6ff29a48c0e0c2a713b775487937 (diff)
parent975746875086104ca2cf4902cbc6dee7d9230923 (diff)
downloadchef-fd785cdf3b5a12a7798fc14f01cc3d769e5342e2.tar.gz
Merge pull request #13723 from chef/jfm/chef17_windows_version_strings
[chef-17] 16 of X - Updating Windows Version Strings
-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 65cf2fc5f0..d9ce79de9e 100644
--- a/lib/chef/win32/version.rb
+++ b/lib/chef/win32/version.rb
@@ -51,6 +51,7 @@ class Chef
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 && build_number < 20348 } },
+ "Windows 11" => { major: 10, minor: 0, callable: lambda { |product_type, suite_mask, build_number| product_type == VER_NT_WORKSTATION && build_number >= 22000 } },
"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 } },
"Windows 8.1" => { major: 6, minor: 3, callable: lambda { |product_type, suite_mask, build_number| product_type == VER_NT_WORKSTATION } },