1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00

call setup_credentials in rds mock

This commit is contained in:
Josh Lane 2015-02-13 13:49:05 -08:00
parent d1fa078da5
commit 6eef6d15c3

View file

@ -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