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:
parent
d1fa078da5
commit
6eef6d15c3
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue