From de7a6b0564ec575bf1514395ada8dbf6b6290263 Mon Sep 17 00:00:00 2001 From: Allan Date: Fri, 25 Feb 2011 08:32:52 +0800 Subject: [PATCH] [aws|server] fixed deprecation warnings for ip_address --- lib/fog/compute/models/aws/server.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/fog/compute/models/aws/server.rb b/lib/fog/compute/models/aws/server.rb index 4630edc03..59be3e4fe 100644 --- a/lib/fog/compute/models/aws/server.rb +++ b/lib/fog/compute/models/aws/server.rb @@ -179,19 +179,19 @@ module Fog 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