1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Adding exception from net-ssh 2.6 that occurs during bootstrap as sshd is just starting up

This commit is contained in:
Trae Robrock 2013-07-27 13:55:53 -07:00
parent 8767ee1f30
commit a16ccb3c3d

View file

@ -69,7 +69,7 @@ module Fog
def sshable?(options={})
ready? && !public_ip_address.nil? && !!Timeout::timeout(8) { ssh('pwd', options) }
rescue SystemCallError, Net::SSH::AuthenticationFailed, Timeout::Error
rescue SystemCallError, Net::SSH::AuthenticationFailed, Net::SSH::Disconnect, Timeout::Error
false
end