From 6eef6d15c3cc934115901ca68777afe403e64099 Mon Sep 17 00:00:00 2001 From: Josh Lane Date: Fri, 13 Feb 2015 13:49:05 -0800 Subject: [PATCH] call setup_credentials in rds mock --- lib/fog/aws/rds.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/fog/aws/rds.rb b/lib/fog/aws/rds.rb index 90606479c..1b33eed06 100644 --- a/lib/fog/aws/rds.rb +++ b/lib/fog/aws/rds.rb @@ -126,11 +126,13 @@ module Fog def initialize(options={}) @use_iam_profile = options[:use_iam_profile] - @region = options[:region] || 'us-east-1' + @region = options[:region] || 'us-east-1' unless ['ap-northeast-1', 'ap-southeast-1', 'ap-southeast-2', 'eu-central-1', 'eu-west-1', 'us-east-1', 'us-west-1', 'us-west-2', 'sa-east-1'].include?(@region) raise ArgumentError, "Unknown region: #{@region.inspect}" end + + setup_credentials(options) end def data