Browse files

refs #8254, EndpointPort -> Port

  • Loading branch information...
1 parent baa4425 commit d98fd250e7ae13d673f82a47f4dc97fc490258b6 @konstantin-dzreev konstantin-dzreev committed Nov 1, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/rds/right_rds_interface.rb
View
6 lib/rds/right_rds_interface.rb
@@ -198,7 +198,7 @@ def create_db_instance(aws_id, master_username, master_user_password, params={})
request_hash['AllocatedStorage'] = params[:allocated_storage].right_blank? ? 25 : params[:allocated_storage]
request_hash['Engine'] = params[:engine].right_blank? ? 'MySQL5.1' : params[:engine]
# Optional
- request_hash['EndpointPort'] = params[:endpoint_port] unless params[:endpoint_port].right_blank?
+ request_hash['Port'] = params[:endpoint_port] unless params[:endpoint_port].right_blank?
request_hash['DBName'] = params[:db_name] unless params[:db_name].right_blank?
request_hash['AvailabilityZone'] = params[:availability_zone] unless params[:availability_zone].right_blank?
request_hash['MultiAZ'] = params[:multi_az].to_s unless params[:multi_az].nil?
@@ -688,7 +688,7 @@ def restore_db_instance_from_db_snapshot(snapshot_aws_id, instance_aws_id, param
request_hash = { 'DBSnapshotIdentifier' => snapshot_aws_id,
'DBInstanceIdentifier' => instance_aws_id }
request_hash['DBInstanceClass'] = params[:instance_class] unless params[:instance_class].right_blank?
- request_hash['EndpointPort'] = params[:endpoint_port] unless params[:endpoint_port].right_blank?
+ request_hash['Port'] = params[:endpoint_port] unless params[:endpoint_port].right_blank?
request_hash['AvailabilityZone'] = params[:availability_zone] unless params[:availability_zone].right_blank?
request_hash['MultiAZ'] = params[:multi_az] unless params[:multi_az].nil?
link = generate_request('RestoreDBInstanceFromDBSnapshot', request_hash)
@@ -964,7 +964,7 @@ def tagend(name)
when 'MaxRecords' then @result[:max_records] = @text.to_i # ?
when 'Engine' then @db_snapshot[:engine] = @text
when 'InstanceCreateTime' then @db_snapshot[:instance_create_time] = @text
- when 'EndpointPort' then @db_snapshot[:endpoint_port] = @text.to_i
+ when 'Port' then @db_snapshot[:endpoint_port] = @text.to_i
when 'Status' then @db_snapshot[:status] = @text
when 'AvailabilityZone' then @db_snapshot[:availability_zone] = @text
when 'MasterUsername' then @db_snapshot[:master_username] = @text

0 comments on commit d98fd25

Please sign in to comment.