summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-08-25 15:59:57 -0700
committerTim Smith <tsmith84@gmail.com>2020-08-25 15:59:57 -0700
commit70e568b5b26e2a35ee8638d9366e21356095941c (patch)
tree720ac411f963b0ab28af962e4cad1cadd8282fd0
parent882dfb0f9a61cdb0ce1f843982bfcc41eb97148c (diff)
downloadchef-70e568b5b26e2a35ee8638d9366e21356095941c.tar.gz
There's no need to both create and enable with launchd
Enable just runs the create resources again Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/resource/chef_client_launchd.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/chef_client_launchd.rb b/lib/chef/resource/chef_client_launchd.rb
index 91d7717b3f..9d58b9c15c 100644
--- a/lib/chef/resource/chef_client_launchd.rb
+++ b/lib/chef/resource/chef_client_launchd.rb
@@ -110,7 +110,7 @@ class Chef
environment_variables new_resource.environment unless new_resource.environment.empty?
nice new_resource.nice
low_priority_io true
- action %i{create enable}
+ action :enable
end
end