diff options
author | Tim Smith <tsmith@chef.io> | 2018-03-04 21:09:54 -0800 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-03-04 21:09:54 -0800 |
commit | c5d19c20b267f6afc0128e7f57905775ca8e3d74 (patch) | |
tree | 25c4f7949a28f6c3b970987095b56e199e72b9f4 | |
parent | 599f0dfec0c8c2b0d6d6eaf2a594abeebf40ff66 (diff) | |
download | chef-c5d19c20b267f6afc0128e7f57905775ca8e3d74.tar.gz |
Set identity on windows_service properlywin_service
Use the modern method
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | lib/chef/resource/windows_service.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/chef/resource/windows_service.rb b/lib/chef/resource/windows_service.rb index 8a76a716aa..aaa21aa6a7 100644 --- a/lib/chef/resource/windows_service.rb +++ b/lib/chef/resource/windows_service.rb @@ -41,11 +41,9 @@ class Chef allowed_actions :configure_startup, :create, :delete, :configure - identity_attr :service_name - state_attrs :enabled, :running - property :service_name, name_property: true + property :service_name, name_property: true, identity: true # The display name to be used by user interface programs to identify the # service. This string has a maximum length of 256 characters. |