summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-05-28 13:29:33 -0700
committerTim Smith <tsmith84@gmail.com>2020-06-22 23:12:37 -0700
commitd562f43cb7d4d733694630c1d0591d7f17e73302 (patch)
tree9f1dbe0c960d3c7e6b6f86c0366f1a15fcf67bf6
parente090d448ce1361471d5cdad9c0e3ac5155918a84 (diff)
downloadchef-d562f43cb7d4d733694630c1d0591d7f17e73302.tar.gz
hostname: Improve the windows reboot messagehostname_15
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 ed6b642769..7329dd34bf 100644
--- a/lib/chef/resource/hostname.rb
+++ b/lib/chef/resource/hostname.rb
@@ -13,6 +13,7 @@
#
require_relative "../resource"
+require_relative "../dist"
class Chef
class Resource
@@ -245,7 +246,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