summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-08-06 21:58:54 -0700
committerGitHub <noreply@github.com>2018-08-06 21:58:54 -0700
commitca2fcd2aa8785fdab57b0e92cfc27c1b92164d5f (patch)
tree518d6b12b4d18d3207463319be1f2e51123f6236 /lib
parentd4a7016f8223a46faa41ff7df941db4ddda5e813 (diff)
parent435d7db84a2073cec9614ad62ea179c24f4f92af (diff)
downloadchef-ca2fcd2aa8785fdab57b0e92cfc27c1b92164d5f.tar.gz
Merge pull request #7525 from goblin23/master
stop parsing init script at the "### END INIT INFO" marker.
Diffstat (limited to 'lib')
-rw-r--r--lib/chef/provider/service/debian.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/service/debian.rb b/lib/chef/provider/service/debian.rb
index 09af9f224f..351075111b 100644
--- a/lib/chef/provider/service/debian.rb
+++ b/lib/chef/provider/service/debian.rb
@@ -78,7 +78,7 @@ class Chef
if line =~ /^### BEGIN INIT INFO/
in_info = true
elsif line =~ /^### END INIT INFO/
- in_info = false
+ break acc
elsif in_info
if line =~ /Default-(Start|Stop):\s+(\d.*)/
acc << $2.split(" ")