summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2020-05-28 20:12:09 -0700
committerGitHub <noreply@github.com>2020-05-28 20:12:09 -0700
commit176a42569ea4601789b0aea2e897c3c2c1a78cc4 (patch)
tree726c23c1c4af2a4e1ef544515db6e9279f818065
parent635da81e64e262355d17191674b123d0c77c913c (diff)
parentb6e9162f84c0f32c8cea244a7e8c24e1194c097f (diff)
downloadchef-176a42569ea4601789b0aea2e897c3c2c1a78cc4.tar.gz
Merge pull request #9927 from chef/hostname_reboot
hostname: Improve the windows reboot message
-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