diff options
author | Gregory Batye <gbatye@fb.com> | 2016-10-28 16:18:12 -0700 |
---|---|---|
committer | Gregory Batye <gbatye@fb.com> | 2016-10-28 16:18:12 -0700 |
commit | 3050a0594ddf3a6a65020df036226594014534b0 (patch) | |
tree | bb63a40e2be3e016e8b07af05e591c347a294d74 | |
parent | aa9bbabde662a58c581ed4d87707eac5534bc292 (diff) | |
download | chef-3050a0594ddf3a6a65020df036226594014534b0.tar.gz |
Validate machine has computer level profile
-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 69ecf2ddb9..842e00892b 100644 --- a/lib/chef/provider/osx_profile.rb +++ b/lib/chef/provider/osx_profile.rb @@ -55,7 +55,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 |