summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-08-12 09:15:09 -0700
committerTim Smith <tsmith84@gmail.com>2020-08-12 09:15:09 -0700
commit28d68b5566499da8611dc9ff29f4ddedae0a4058 (patch)
tree369531f364e201bb631acda9d5d0e09088d2e453
parent2505112add8e5e220441a2e5aed5456e7dcc3a72 (diff)
downloadchef-macos_helper.tar.gz
Use macos? helper in homebrew_updatemacos_helper
This is the one we should be using vs. the alias. Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/resource/homebrew_update.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/resource/homebrew_update.rb b/lib/chef/resource/homebrew_update.rb
index a13d22c223..2bf1f8023f 100644
--- a/lib/chef/resource/homebrew_update.rb
+++ b/lib/chef/resource/homebrew_update.rb
@@ -86,7 +86,7 @@ class Chef
end
action :periodic do
- return unless mac_os_x?
+ return unless macos?
unless brew_up_to_date?
converge_by "update new lists of packages" do
@@ -96,7 +96,7 @@ class Chef
end
action :update do
- return unless mac_os_x?
+ return unless macos?
converge_by "force update new lists of packages" do
do_update