Permalink
Browse files

[aws|server] fixed deprecation warnings for ip_address

  • Loading branch information...
1 parent 5030cbb commit de7a6b0564ec575bf1514395ada8dbf6b6290263 Allan committed with Wesley Beary Feb 25, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/fog/compute/models/aws/server.rb
@@ -179,19 +179,19 @@ def setup(credentials = {})
end
def ssh(commands)
- requires :identity, :ip_address, :username
+ requires :identity, :public_ip_address, :username
options = {}
options[:key_data] = [private_key] if private_key
- Fog::SSH.new(ip_address, username, options).run(commands)
+ Fog::SSH.new(public_ip_address, username, options).run(commands)
end
def scp(local_path, remote_path)
- requires :ip_address, :username
+ requires :public_ip_address, :username
options = {}
options[:key_data] = [private_key] if private_key
- Fog::SCP.new(ip_address, username, options).upload(local_path, remote_path)
+ Fog::SCP.new(public_ip_address, username, options).upload(local_path, remote_path)
end
def start

0 comments on commit de7a6b0

Please sign in to comment.