SSH returns 255 for connection refused errors.

So limiting the range down a bit.
This commit is contained in:
Kohsuke Kawaguchi 2013-03-29 15:46:17 -07:00
parent a02491ddd6
commit de4830fc40
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ module Blimpy
# 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