summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-09-17 11:00:19 -0700
committerTim Smith <tsmith84@gmail.com>2020-09-17 11:00:19 -0700
commitf046b6fd541e4c34bd1d2c4c08b158a7fb0b222e (patch)
treecdf61260f81817c1a41c0a0f8f1d5e9bf24938f8
parentb159e98c8b04c1140970eddebd5de304f1843e9a (diff)
downloadchef-f046b6fd541e4c34bd1d2c4c08b158a7fb0b222e.tar.gz
Fix the get_installed_profiles to properly return a hash
The logger.trace was causing it to return nil Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/resource/osx_profile.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/osx_profile.rb b/lib/chef/resource/osx_profile.rb
index 5de3d3cdc8..6c0028301d 100644
--- a/lib/chef/resource/osx_profile.rb
+++ b/lib/chef/resource/osx_profile.rb
@@ -308,12 +308,12 @@ class Chef
#
def get_installed_profiles(update = nil)
+ logger.trace("Saving profile data to node.run_state")
if update
node.run_state[:config_profiles] = query_installed_profiles
else
node.run_state[:config_profiles] ||= query_installed_profiles
end
- logger.trace("Saved profiles to run_state")
end
def query_installed_profiles