summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThom May <thom@may.lt>2017-03-06 13:18:17 +0000
committerGitHub <noreply@github.com>2017-03-06 13:18:17 +0000
commit7d4958a36b8a9f575f3c661dcba89ad210f8beff (patch)
tree13db9d53a8eff801b90a9c71cfd4a08fc986b1e2
parent4850b05355324c0e9bdd6d475c7192f11227045a (diff)
parent934d4e09c9462e3339c6132ea7970369b7bb0cdc (diff)
downloadchef-7d4958a36b8a9f575f3c661dcba89ad210f8beff.tar.gz
Merge pull request #5497 from gbatye/fix_osx_profile
Mac: Validate that a machine has a 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 9ea68f4c9f..9a3b0f9b4a 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