summaryrefslogtreecommitdiff
path: root/lib/chef/resource/service.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2020-04-02 13:11:23 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2020-04-02 13:11:23 -0700
commit333e0695117f8a518b8f2729bc3f97a5bd6560e4 (patch)
tree075407f7449b87bf4c24c09e3750e282357c5e58 /lib/chef/resource/service.rb
parent6185d25626e63973c22ed4736af048c1f11dab9d (diff)
downloadchef-333e0695117f8a518b8f2729bc3f97a5bd6560e4.tar.gz
remove redundant identity
name_property implies identity if there is no other identity property this has been the behavior for a very long time, dunno why #4282 was never closed. closes #4282 Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/resource/service.rb')
-rw-r--r--lib/chef/resource/service.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/chef/resource/service.rb b/lib/chef/resource/service.rb
index 71eb344483..4c57cd07b0 100644
--- a/lib/chef/resource/service.rb
+++ b/lib/chef/resource/service.rb
@@ -31,8 +31,6 @@ class Chef
provides :service, target_mode: true
- identity_attr :service_name
-
description "Use the service resource to manage a service."
default_action :nothing
@@ -46,7 +44,7 @@ class Chef
property :service_name, String,
description: "An optional property to set the service name if it differs from the resource block's name.",
- name_property: true, identity: true
+ name_property: true
# regex for match against ps -ef when !supports[:has_status] && status == nil
property :pattern, String,