Permalink
Browse files

SSH returns 255 for connection refused errors.

So limiting the range down a bit.
  • Loading branch information...
1 parent a02491d commit de4830fc40b3f03857d4f28bbec245788ad44cd9 @kohsuke kohsuke committed Mar 29, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/blimpy/box.rb
View
@@ -241,7 +241,7 @@ def wait_for_sshd
# Run the `true` command and exit
@ssh_connected = ssh_into('-q', 'true')
# if SSH is killed (such as Ctrl+C), abort right away
- raise Exception, "ssh was killed: #{$?.exitstatus}" if $?.exitstatus>128
+ raise Exception, "ssh was killed: #{$?.exitstatus}" if $?.exitstatus>128 && $?.exitstatus<200
unless @ssh_connected
if (Time.now.to_i - start) < 60

0 comments on commit de4830f

Please sign in to comment.