summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn <john.mccrae@progress.com>2023-04-26 20:00:24 -0700
committerJohn <john.mccrae@progress.com>2023-04-27 08:26:25 -0700
commit975746875086104ca2cf4902cbc6dee7d9230923 (patch)
treef8a656ad44519dc0d7aadb519e958384c302f11c
parentad35bf42c057ea5832497b07f75e608ffd3f3409 (diff)
downloadchef-975746875086104ca2cf4902cbc6dee7d9230923.tar.gz
[chef-17] 16 of X - Updating Windows Version Strings
Signed-off-by: John <john.mccrae@progress.com>
-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 } },