summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Batye <gbatye@fb.com>2016-10-28 16:18:12 -0700
committerGregory Batye <gbatye@fb.com>2016-10-28 16:18:12 -0700
commit3050a0594ddf3a6a65020df036226594014534b0 (patch)
treebb63a40e2be3e016e8b07af05e591c347a294d74
parentaa9bbabde662a58c581ed4d87707eac5534bc292 (diff)
downloadchef-3050a0594ddf3a6a65020df036226594014534b0.tar.gz
Validate machine has computer level profile
-rw-r--r--lib/chef/provider/osx_profile.rb2
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