summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2009-04-24 19:02:08 +1000
committerJames Turnbull <james@lovedthanlost.net>2009-04-24 19:02:08 +1000
commit284cbeb6a6b4b8d633890139b8e5c5319f67bde3 (patch)
tree8001627eb1fee9fbf1c1476e3fa339d0e63fd3b5 /lib/puppet
parent68ba1f135a587d2dbfbf7a371540a83908c9d590 (diff)
downloadpuppet-284cbeb6a6b4b8d633890139b8e5c5319f67bde3.tar.gz
puppet-284cbeb6a6b4b8d633890139b8e5c5319f67bde3.tar.xz
puppet-284cbeb6a6b4b8d633890139b8e5c5319f67bde3.zip
Fixes #2172 - service provider for gentoo fails with ambiguous suffixes
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 d62df1a38..95d5b3a25 100644
--- a/lib/puppet/provider/service/gentoo.rb
+++ b/lib/puppet/provider/service/gentoo.rb
@@ -38,7 +38,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*(boot|default)/
+ if output =~ /^\s*#{@resource[:name]}\s*\|\s*(boot|default)/
return :true
else
return :false