summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMatt Robinson <matt@puppetlabs.com>2011-03-22 22:31:47 -0700
committerMatt Robinson <matt@puppetlabs.com>2011-03-23 13:10:38 -0700
commit341654ea16e662e31bb97ca260397939ac34692e (patch)
treeeaeab4cb8a3dceacca7a7c6cd761a2c39a669f98 /lib
parent3d43d866d6629863d91861f29638c1a31750ba57 (diff)
downloadpuppet-341654ea16e662e31bb97ca260397939ac34692e.tar.gz
puppet-341654ea16e662e31bb97ca260397939ac34692e.tar.xz
puppet-341654ea16e662e31bb97ca260397939ac34692e.zip
(#6820) Fix invalid next that should be a return
The old code under ruby 1.8.7 if it was hit would result in: unexpected next (LocalJumpError) In Ruby 1.9 it doesn't even give you the chance to run the code since you get: compile error (SyntaxError) The code isn't tested so the intented behavior isn't clear, but in context this looks like the right change. Reviewed-by: Jacob Helwig <jacob@puppetlabs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/provider/service/daemontools.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/provider/service/daemontools.rb b/lib/puppet/provider/service/daemontools.rb
index bbb962a71..f5a073329 100644
--- a/lib/puppet/provider/service/daemontools.rb
+++ b/lib/puppet/provider/service/daemontools.rb
@@ -67,7 +67,7 @@ Puppet::Type.type(:service).provide :daemontools, :parent => :base do
path = self.defpath
unless FileTest.directory?(path)
Puppet.notice "Service path #{path} does not exist"
- next
+ return
end
# reject entries that aren't either a directory