diff options
author | Austin Culter <austinculter@gmail.com> | 2020-08-18 14:29:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-18 14:29:57 +0200 |
commit | 9947238ad07dea42190aaebe38af0df60055ad45 (patch) | |
tree | 6e6dda08436af055c370301b2f11a693a4e728c0 | |
parent | 5477a96d7725f557502939fc99531b0806978044 (diff) | |
download | chef-9947238ad07dea42190aaebe38af0df60055ad45.tar.gz |
Fix macOS ver eval logic; fix typo
Typo: `Bug Sur` > `Big Sur`
macOS Eval Logic: Change `> 10.15` to `>= 11.0`
-rw-r--r-- | lib/chef/resource/osx_profile.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/resource/osx_profile.rb b/lib/chef/resource/osx_profile.rb index 985d708008..6bc86aaefc 100644 --- a/lib/chef/resource/osx_profile.rb +++ b/lib/chef/resource/osx_profile.rb @@ -80,8 +80,8 @@ class Chef end def check_resource_semantics! - if mac? && node["platform_version"] =~ "> 10.15" - raise "The osx_profile resource is not available on macOS Bug Sur or above due to the removal of apple support for CLI installation of profiles" + if mac? && node["platform_version"] =~ ">= 11.0" + raise "The osx_profile resource is not available on macOS Big Sur or above due to the removal of apple support for CLI installation of profiles" end if action == :remove |