summaryrefslogtreecommitdiff
path: root/lib/chef
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-08-18 16:20:28 -0700
committerTim Smith <tsmith84@gmail.com>2020-08-18 16:20:28 -0700
commit621caccc151dfbdddb29adfec57aef91ff3d06c5 (patch)
tree26f7ddbb619f1f0d5c9bebfd8d3f9d4509275e1a /lib/chef
parent97f8bc54bb76edbac93d7c53252f52866c648dbf (diff)
downloadchef-621caccc151dfbdddb29adfec57aef91ff3d06c5.tar.gz
Make sure to not raise too earlytimezone
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef')
-rw-r--r--lib/chef/resource/timezone.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/timezone.rb b/lib/chef/resource/timezone.rb
index 97aa738af9..7ed67860cd 100644
--- a/lib/chef/resource/timezone.rb
+++ b/lib/chef/resource/timezone.rb
@@ -74,7 +74,7 @@ class Chef
# @since 14.7
# @return [String] timezone id
def current_windows_tz
- tz_shellout = shell_out!("tzutil /g")
+ tz_shellout = shell_out("tzutil /g")
raise "There was an error running the tzutil command" if tz_shellout.exitstatus == 1
tz_shellout.stdout.strip