summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-11-15 17:22:14 -0800
committerTim Smith <tsmith@chef.io>2018-11-15 17:22:14 -0800
commita9d4f25dd6a6aed743c743dbef7624510b53cf70 (patch)
treeb1d960cfaec2c152fc5ef0bbf2890576575b8a8a
parent10a50ac0fedaa0c7da96393c1e9add9e0766fcaf (diff)
downloadchef-a9d4f25dd6a6aed743c743dbef7624510b53cf70.tar.gz
Remove duplicate identity and state_attrs in other service resources
We're already setting this up in service Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/resource/macosx_service.rb4
-rw-r--r--lib/chef/resource/windows_service.rb2
2 files changed, 0 insertions, 6 deletions
diff --git a/lib/chef/resource/macosx_service.rb b/lib/chef/resource/macosx_service.rb
index deff6e1927..37681ca930 100644
--- a/lib/chef/resource/macosx_service.rb
+++ b/lib/chef/resource/macosx_service.rb
@@ -27,10 +27,6 @@ class Chef
description "Use the macosx_service resource to manage services on the macOS platform."
- identity_attr :service_name
-
- state_attrs :enabled, :running
-
property :plist, String,
description: "A plist to use in the case where the filename and label for the service do not match."
diff --git a/lib/chef/resource/windows_service.rb b/lib/chef/resource/windows_service.rb
index 7b6593f037..a3d48c109a 100644
--- a/lib/chef/resource/windows_service.rb
+++ b/lib/chef/resource/windows_service.rb
@@ -41,8 +41,6 @@ class Chef
allowed_actions :configure_startup, :create, :delete, :configure
- state_attrs :enabled, :running
-
property :service_name, String,
description: "The name of the service.",
name_property: true, identity: true