summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-05-28 13:29:33 -0700
committerTim Smith <tsmith84@gmail.com>2020-05-28 17:14:55 -0700
commitb6e9162f84c0f32c8cea244a7e8c24e1194c097f (patch)
treeb5d3fae210947fee13765fe712dc3996f1e06e69
parent4669d57469dff2257995591a45dd17eeb0401832 (diff)
downloadchef-hostname_reboot.tar.gz
hostname: Improve the windows reboot messagehostname_reboot
Make sure this works in cinc Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/resource/hostname.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef/resource/hostname.rb b/lib/chef/resource/hostname.rb
index 2d9b18b42d..f096b0e881 100644
--- a/lib/chef/resource/hostname.rb
+++ b/lib/chef/resource/hostname.rb
@@ -16,6 +16,7 @@
#
require_relative "../resource"
+require_relative "../dist"
class Chef
class Resource
@@ -248,7 +249,7 @@ class Chef
# reboot because $windows
declare_resource(:reboot, "setting hostname") do
- reason "chef setting hostname"
+ reason "#{Chef::Dist::PRODUCT} updated system hostname"
action :nothing
only_if { new_resource.windows_reboot }
end