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

[aws|compute] Use #public_ip_address instead of deprecated #ip_address in Server#setup

This commit is contained in:
Martin Emde 2011-06-02 16:49:19 -07:00
parent bdf63d44e2
commit df63e9bc43

View file

@ -166,7 +166,7 @@ module Fog
end
def setup(credentials = {})
requires :identity, :ip_address, :username
requires :identity, :public_ip_address, :username
require 'json'
commands = [
@ -181,7 +181,7 @@ module Fog
Timeout::timeout(120) do
begin
Timeout::timeout(4) do
Fog::SSH.new(ip_address, username, credentials).run(commands)
Fog::SSH.new(public_ip_address, username, credentials).run(commands)
end
rescue Net::SSH::AuthenticationFailed, Timeout::Error
retry