summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-07-06 21:54:00 -0700
committerTim Smith <tsmith84@gmail.com>2020-07-20 11:45:27 -0700
commit59c0b1133580ca1402b158209ad9d0fb06d282a8 (patch)
tree60c4e706dc1f820c9e4b46e37eae9a18bc4a1ab1
parente64a52b391f51cb56639c0e3ba3f9849dded248e (diff)
downloadchef-59c0b1133580ca1402b158209ad9d0fb06d282a8.tar.gz
Fail if we can't set the defaults
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/resource/macos_userdefaults.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/resource/macos_userdefaults.rb b/lib/chef/resource/macos_userdefaults.rb
index 6251460910..3b8b844608 100644
--- a/lib/chef/resource/macos_userdefaults.rb
+++ b/lib/chef/resource/macos_userdefaults.rb
@@ -135,9 +135,9 @@ class Chef
Chef::Log.debug("Updating defaults value by shelling out: #{cmd}")
if new_resource.user.nil?
- shell_out(cmd)
+ shell_out!(cmd)
else
- shell_out(cmd, user: new_resource.user)
+ shell_out!(cmd, user: new_resource.user)
end
end
end