From 879dc9dc3e63ed5680302e287d496073e719f163 Mon Sep 17 00:00:00 2001 From: Eugene Howe Date: Sun, 31 Jan 2016 13:22:29 -0500 Subject: [PATCH] always return a default engine parameters result --- lib/fog/aws/rds.rb | 22 +++++++++---------- .../rds/describe_engine_default_parameters.rb | 2 +- 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/lib/fog/aws/rds.rb b/lib/fog/aws/rds.rb index 583a7a8db..b08a46f1f 100644 --- a/lib/fog/aws/rds.rb +++ b/lib/fog/aws/rds.rb @@ -102,18 +102,16 @@ module Fog :subnet_groups => {}, :snapshots => {}, :event_subscriptions => {}, - :default_parameters => { - "mysql5.5" => [ - { - "DataType" => "integer", - "Source" => "engine-default", - "Description" => "Intended for use with master-to-master replication, and can be used to control the operation of AUTO_INCREMENT columns", - "ApplyType" => "dynamic", - "AllowedValues" => "1-65535", - "ParameterName" => "auto_increment_increment" - } - ], - }, + :default_parameters => [ + { + "DataType" => "integer", + "Source" => "engine-default", + "Description" => "Intended for use with master-to-master replication, and can be used to control the operation of AUTO_INCREMENT columns", + "ApplyType" => "dynamic", + "AllowedValues" => "1-65535", + "ParameterName" => "auto_increment_increment" + } + ], :db_engine_versions => [ { 'Engine' => "mysql", diff --git a/lib/fog/aws/requests/rds/describe_engine_default_parameters.rb b/lib/fog/aws/requests/rds/describe_engine_default_parameters.rb index 46ecca0c7..4d4737b76 100644 --- a/lib/fog/aws/requests/rds/describe_engine_default_parameters.rb +++ b/lib/fog/aws/requests/rds/describe_engine_default_parameters.rb @@ -20,7 +20,7 @@ module Fog response.status = 200 response.body = { "ResponseMetadata" => { "RequestId" => Fog::AWS::Mock.request_id }, - "DescribeEngineDefaultParametersResult" => { "Parameters" => self.data[:default_parameters][family]} + "DescribeEngineDefaultParametersResult" => { "Parameters" => self.data[:default_parameters]} } response end