mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
rebased with master
This commit is contained in:
commit
d059eb0aef
3 changed files with 3 additions and 1 deletions
|
@ -52,6 +52,7 @@ module Fog
|
||||||
raise ArgumentError.new(':key_data, :keys, :password or a loaded ssh-agent is required to initialize SSH')
|
raise ArgumentError.new(':key_data, :keys, :password or a loaded ssh-agent is required to initialize SSH')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
options[:timeout] = 30
|
||||||
if options[:key_data] || options[:keys]
|
if options[:key_data] || options[:keys]
|
||||||
options[:keys_only] = true
|
options[:keys_only] = true
|
||||||
#Explicitly set these so net-ssh doesn't add the default keys
|
#Explicitly set these so net-ssh doesn't add the default keys
|
||||||
|
|
|
@ -46,6 +46,7 @@ module Fog
|
||||||
raise ArgumentError.new(':key_data, :keys, :password or a loaded ssh-agent is required to initialize SSH')
|
raise ArgumentError.new(':key_data, :keys, :password or a loaded ssh-agent is required to initialize SSH')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
options[:timeout] = 30
|
||||||
if options[:key_data] || options[:keys]
|
if options[:key_data] || options[:keys]
|
||||||
options[:keys_only] = true
|
options[:keys_only] = true
|
||||||
#Explicitly set these so net-ssh doesn't add the default keys
|
#Explicitly set these so net-ssh doesn't add the default keys
|
||||||
|
|
|
@ -31,7 +31,7 @@ module Fog
|
||||||
#
|
#
|
||||||
def bootstrap(new_attributes = {})
|
def bootstrap(new_attributes = {})
|
||||||
server = create(new_attributes)
|
server = create(new_attributes)
|
||||||
server.wait_for(1500) { ready? && !ipv4_address.empty? }
|
server.wait_for(1500) { ready? && !public_ip_address.empty? }
|
||||||
server.setup(:password => server.password)
|
server.setup(:password => server.password)
|
||||||
server
|
server
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue