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:
parent
bdf63d44e2
commit
df63e9bc43
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue