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

[aws][glesys] Pass credentials to sshable

This commit is contained in:
Anshul Khandelwal 2013-03-06 22:11:34 +05:30
parent 7c7b308b38
commit e4884d8f51
2 changed files with 4 additions and 4 deletions
lib/fog
aws/models/compute
glesys/models/compute

View file

@ -202,7 +202,7 @@ module Fog
end
# wait for aws to be ready
wait_for { sshable? }
wait_for { sshable?(credentials) }
Fog::SSH.new(public_ip_address, username, credentials).run(commands)
end

View file

@ -87,13 +87,13 @@ module Fog
commands << %{echo "#{public_key}" >> ~/.ssh/authorized_keys}
end
# wait for aws to be ready
wait_for { sshable? }
if credentials[:password].nil? && !rootpassword.nil?
credentials[:password] = rootpassword
end
# wait for glesys to be ready
wait_for { sshable?(credentials) }
Fog::SSH.new(public_ip_address, username, credentials).run(commands)
end