diff options
author | Wade Peacock <wade.peacock@visioncritical.com> | 2021-09-30 19:53:02 -0700 |
---|---|---|
committer | Wade Peacock <wade.peacock@visioncritical.com> | 2021-09-30 19:54:36 -0700 |
commit | b607b88266393d89034d61e925a5b74b86dbfd04 (patch) | |
tree | de10234ac27edb39f78488068dcd4502c5f015e2 | |
parent | 92653533b1e8fd9d522e18409f37fb9e07413e98 (diff) | |
download | chef-b607b88266393d89034d61e925a5b74b86dbfd04.tar.gz |
CHEF16 - Windows2019 - Add version ceiling
Update lib/chef/win32/version.rb - Add less than 2022 build number
This was an oversight
Follow up to: https://github.com/chef/chef/pull/12096
Signed-off-by: Wade Peacock <wade.peacock@alida.com>
-rw-r--r-- | lib/chef/win32/version.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/win32/version.rb b/lib/chef/win32/version.rb index fe7a80926b..65cf2fc5f0 100644 --- a/lib/chef/win32/version.rb +++ b/lib/chef/win32/version.rb @@ -50,7 +50,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 } }, + "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 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 } }, |