summaryrefslogtreecommitdiff
path: root/lib/chef/resource
diff options
context:
space:
mode:
authorJason Barnett <jason.w.barnett@gmail.com>2018-01-26 15:55:07 -0800
committerJason Barnett <jason.w.barnett@gmail.com>2018-01-26 15:56:55 -0800
commit1676c80eaa4df2e91e8252119cd528d63873196b (patch)
tree118b55d68bb68085de506a613dacff548d9c89ee /lib/chef/resource
parentd4c645016baf361f823b5d8c940ff6ff750ac6a3 (diff)
downloadchef-1676c80eaa4df2e91e8252119cd528d63873196b.tar.gz
chefstyle -a
Developer's Certificate of Origin 1.1 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/resource')
-rw-r--r--lib/chef/resource/windows_service.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/resource/windows_service.rb b/lib/chef/resource/windows_service.rb
index a085252a4c..4e14b18c20 100644
--- a/lib/chef/resource/windows_service.rb
+++ b/lib/chef/resource/windows_service.rb
@@ -80,7 +80,7 @@ class Chef
# 0 == NO delayed start
property :delayed_start, [TrueClass, FalseClass], default: false, coerce: proc { |x|
if x.is_a?(Integer)
- x.zero? ? false : true
+ x == 0 ? false : true
else
x
end
@@ -110,8 +110,8 @@ class Chef
property :description, String
- property :run_as_user, String, default: 'LocalSystem'
- property :run_as_password, String, default: ''
+ property :run_as_user, String, default: "LocalSystem"
+ property :run_as_password, String, default: ""
end
end
end