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:
parent
7c7b308b38
commit
e4884d8f51
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue