summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2008-11-28 08:51:21 +1100
committerJames Turnbull <james@lovedthanlost.net>2008-11-28 08:51:21 +1100
commit4f67a7c26a5e740fd672b3c4f17e0fd366154840 (patch)
tree191f584588c2d307f01c08248ba27a139d7fb83a /lib/puppet
parent2764ab4a991cca94d8ae41b42db2e3b5398951ed (diff)
downloadpuppet-4f67a7c26a5e740fd672b3c4f17e0fd366154840.tar.gz
puppet-4f67a7c26a5e740fd672b3c4f17e0fd366154840.tar.xz
puppet-4f67a7c26a5e740fd672b3c4f17e0fd366154840.zip
Fixed #1776 - Trivial fix for gentoo service provider
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/provider/service/gentoo.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/provider/service/gentoo.rb b/lib/puppet/provider/service/gentoo.rb
index c5ba7b5f1..d84aaf6a8 100644
--- a/lib/puppet/provider/service/gentoo.rb
+++ b/lib/puppet/provider/service/gentoo.rb
@@ -35,7 +35,7 @@ Puppet::Type.type(:service).provide :gentoo, :parent => :init do
return :false unless line
# If it's enabled then it will print output showing service | runlevel
- if output =~ /#{@resource[:name]}\s*|\s*default/
+ if output =~ /#{@resource[:name]}\s*\|\s*default/
return :true
else
return :false