summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Barnett <jason.w.barnett@gmail.com>2018-01-27 07:52:54 -0800
committerJason Barnett <jason.w.barnett@gmail.com>2018-01-27 07:53:43 -0800
commit06d7c8c54d6134da701d484d2f59a299f67ee9de (patch)
tree39e16cf0387b6eeb0693439fdd3d848fc9fd0e19
parent2cafe1e6ee1465a496278fa95d15842c12c16066 (diff)
downloadchef-06d7c8c54d6134da701d484d2f59a299f67ee9de.tar.gz
Add description property to converge configure action
Developer's Certificate of Origin 1.1 By making a contribution to this project, I certify that: (a) The contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file; or (b) The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the same open source license (unless I am permitted to submit under a different license), as Indicated in the file; or (c) The contribution was provided directly to me by some other person who certified (a), (b) or (c) and I have not modified it. (d) I understand and agree that this project and the contribution are public and that a record of the contribution (including all personal information I submit with it, including my sign-off) is maintained indefinitely and may be redistributed consistent with this project or the open source license(s) involved. Signed-off-by: Jason Barnett <jason.w.barnett@gmail.com>
-rw-r--r--lib/chef/provider/service/windows.rb2
-rw-r--r--spec/unit/provider/service/windows_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/provider/service/windows.rb b/lib/chef/provider/service/windows.rb
index ea2b964023..d370ecff51 100644
--- a/lib/chef/provider/service/windows.rb
+++ b/lib/chef/provider/service/windows.rb
@@ -229,7 +229,7 @@ class Chef::Provider::Service::Windows < Chef::Provider::Service
converge_if_changed :service_type, :startup_type, :error_control,
:binary_path_name, :load_order_group, :dependencies,
- :run_as_user, :display_name do
+ :run_as_user, :display_name, :description do
Win32::Service.configure(windows_service_config(:configure))
end
diff --git a/spec/unit/provider/service/windows_spec.rb b/spec/unit/provider/service/windows_spec.rb
index b5db23591c..edc409fab0 100644
--- a/spec/unit/provider/service/windows_spec.rb
+++ b/spec/unit/provider/service/windows_spec.rb
@@ -380,7 +380,7 @@ describe Chef::Provider::Service::Windows, "load_current_resource" do
# Attributes that are Strings
%i{binary_path_name load_order_group dependencies run_as_user
- display_name}.each do |attr|
+ display_name description}.each do |attr|
it "configures service if #{attr} has changed" do
provider.current_resource.send("#{attr}=", "old value")
provider.new_resource.send("#{attr}=", "new value")