diff options
author | Tim Smith <tsmith@chef.io> | 2020-05-28 20:12:09 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-28 20:12:09 -0700 |
commit | 176a42569ea4601789b0aea2e897c3c2c1a78cc4 (patch) | |
tree | 726c23c1c4af2a4e1ef544515db6e9279f818065 | |
parent | 635da81e64e262355d17191674b123d0c77c913c (diff) | |
parent | b6e9162f84c0f32c8cea244a7e8c24e1194c097f (diff) | |
download | chef-176a42569ea4601789b0aea2e897c3c2c1a78cc4.tar.gz |
Merge pull request #9927 from chef/hostname_reboot
hostname: Improve the windows reboot message
-rw-r--r-- | lib/chef/resource/hostname.rb | 3 |
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 |