summaryrefslogtreecommitdiff
path: root/lib/chef
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-08-18 14:18:50 -0700
committerTim Smith <tsmith84@gmail.com>2020-08-18 14:18:50 -0700
commit5034aeaccc9e70be5bedd994893a010a9c19842c (patch)
tree8ab7e9f8078ae67d6dee0ac4a1cfab1ed15c5a0a /lib/chef
parent2c4130c520c8819cb75f18eff7bc8c1312660b3b (diff)
downloadchef-5034aeaccc9e70be5bedd994893a010a9c19842c.tar.gz
Add spec for windows as well
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 98be3a2fcc..5bcd6c0458 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