mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Include this to make refresh_credentials_if_expired method work properly with Mock
This commit is contained in:
parent
6cdb2e4276
commit
4124fbc79e
1 changed files with 2 additions and 0 deletions
|
@ -138,6 +138,7 @@ module Fog
|
|||
end
|
||||
|
||||
class Mock
|
||||
include Fog::AWS::CredentialFetcher::ConnectionMethods
|
||||
|
||||
def self.data
|
||||
@data ||= Hash.new do |hash, region|
|
||||
|
@ -209,6 +210,7 @@ module Fog
|
|||
|
||||
def initialize(options={})
|
||||
@use_iam_profile = options[:use_iam_profile]
|
||||
@aws_credentials_expire_at = Time::now + 1000
|
||||
setup_credentials(options)
|
||||
@region = options[:region] || 'us-east-1'
|
||||
|
||||
|
|
Loading…
Reference in a new issue