summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-07-13 10:01:52 -0700
committerTim Smith <tsmith84@gmail.com>2020-08-17 22:30:49 -0700
commit654b6404133132b125982f2eae666d794e0a14c7 (patch)
tree561bcc852089ea31e9b67b5641f326d1bec67f9c
parentda832b42084605db226e7c63c50f3fde3f0e6ae7 (diff)
downloadchef-654b6404133132b125982f2eae666d794e0a14c7.tar.gz
Add end-to-end hostname testing
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/resource/hostname.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/hostname.rb b/lib/chef/resource/hostname.rb
index 8c15cf5a2b..592951a3b8 100644
--- a/lib/chef/resource/hostname.rb
+++ b/lib/chef/resource/hostname.rb
@@ -245,8 +245,8 @@ class Chef
# reboot because $windows
reboot "setting hostname" do
reason "#{Chef::Dist::PRODUCT} updated system hostname"
- action :nothing
only_if { new_resource.windows_reboot }
+ action :request_reboot
end
end
end