diff options
-rw-r--r-- | lib/chef/provider/osx_profile.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/osx_profile.rb b/lib/chef/provider/osx_profile.rb index 437e29b392..6939c386a1 100644 --- a/lib/chef/provider/osx_profile.rb +++ b/lib/chef/provider/osx_profile.rb @@ -57,7 +57,7 @@ class Chef end current_profile = nil - if all_profiles && !all_profiles.empty? + if all_profiles && all_profiles.key?("_computerlevel") current_profile = all_profiles["_computerlevel"].find do |item| item["ProfileIdentifier"] == @new_profile_identifier end |