summaryrefslogtreecommitdiff
path: root/lib/chef/provider
diff options
context:
space:
mode:
authorJason Barnett <jason.w.barnett@gmail.com>2018-05-25 12:53:42 -0500
committerJason Barnett <jason.w.barnett@gmail.com>2018-05-25 12:56:09 -0500
commit97d3d5897a8125078f7f7e56dba6ba51494b8899 (patch)
treed7cf0607c0240193bf620e46a083b846e8b03421 /lib/chef/provider
parent2d687d12053e2888efa0441fa72f32faf6c7c5f7 (diff)
downloadchef-97d3d5897a8125078f7f7e56dba6ba51494b8899.tar.gz
Fix :configure_startup action to configure delayed start
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>
Diffstat (limited to 'lib/chef/provider')
-rw-r--r--lib/chef/provider/service/windows.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/chef/provider/service/windows.rb b/lib/chef/provider/service/windows.rb
index 417ec03ef4..487940e84e 100644
--- a/lib/chef/provider/service/windows.rb
+++ b/lib/chef/provider/service/windows.rb
@@ -273,6 +273,8 @@ class Chef::Provider::Service::Windows < Chef::Provider::Service
logger.trace("#{@new_resource} startup_type already #{startup_type} - nothing to do")
end
+ converge_delayed_start
+
# Avoid changing enabled from true/false for now
@new_resource.enabled(nil)
end