diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-07-06 21:54:00 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-07-20 11:45:27 -0700 |
commit | 59c0b1133580ca1402b158209ad9d0fb06d282a8 (patch) | |
tree | 60c4e706dc1f820c9e4b46e37eae9a18bc4a1ab1 /lib/chef/resource/macos_userdefaults.rb | |
parent | e64a52b391f51cb56639c0e3ba3f9849dded248e (diff) | |
download | chef-59c0b1133580ca1402b158209ad9d0fb06d282a8.tar.gz |
Fail if we can't set the defaults
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/resource/macos_userdefaults.rb')
-rw-r--r-- | lib/chef/resource/macos_userdefaults.rb | 4 |
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 |