diff options
author | James Turnbull <james@lovedthanlost.net> | 2009-04-24 19:02:08 +1000 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2009-04-24 19:02:08 +1000 |
commit | 284cbeb6a6b4b8d633890139b8e5c5319f67bde3 (patch) | |
tree | 8001627eb1fee9fbf1c1476e3fa339d0e63fd3b5 /lib | |
parent | 68ba1f135a587d2dbfbf7a371540a83908c9d590 (diff) | |
download | puppet-284cbeb6a6b4b8d633890139b8e5c5319f67bde3.tar.gz puppet-284cbeb6a6b4b8d633890139b8e5c5319f67bde3.tar.xz puppet-284cbeb6a6b4b8d633890139b8e5c5319f67bde3.zip |
Fixes #2172 - service provider for gentoo fails with ambiguous suffixes
Diffstat (limited to 'lib')
-rw-r--r-- | lib/puppet/provider/service/gentoo.rb | 2 |
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 |