From 923d613bb5d96b1898a718bc37842531124b9b89 Mon Sep 17 00:00:00 2001 From: James Turnbull Date: Thu, 3 Mar 2011 06:57:17 +1100 Subject: Fixed #6555 - Ruby 1.9.x returning Invalid next (SyntaxError) The kick application has the option to ping hosts. On 1.9.x this code was returning "Invalid next". The next in this code has been replaced with an exit. Testing has confirmed this doesn't change the behavior of puppet kick. --- lib/puppet/application/kick.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/puppet/application') diff --git a/lib/puppet/application/kick.rb b/lib/puppet/application/kick.rb index 604132818..da93c0182 100644 --- a/lib/puppet/application/kick.rb +++ b/lib/puppet/application/kick.rb @@ -245,7 +245,7 @@ License out = %x{ping -c 1 #{host}} unless $CHILD_STATUS == 0 $stderr.print "Could not contact #{host}\n" - next + exit($CHILD_STATUS) end end -- cgit