mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[aws|sts] make get_*_token requests idempotent
This commit is contained in:
parent
63276c400d
commit
bc520536a3
2 changed files with 2 additions and 0 deletions
|
@ -11,6 +11,7 @@ module Fog
|
|||
'Name' => name,
|
||||
'Policy' => MultiJson.encode(policy),
|
||||
'DurationSeconds' => duration,
|
||||
:idempotent => true,
|
||||
:parser => Fog::Parsers::AWS::STS::GetSessionToken.new
|
||||
})
|
||||
end
|
||||
|
|
|
@ -9,6 +9,7 @@ module Fog
|
|||
request({
|
||||
'Action' => 'GetSessionToken',
|
||||
'DurationSeconds' => duration,
|
||||
:idempotent => true,
|
||||
:parser => Fog::Parsers::AWS::STS::GetSessionToken.new
|
||||
})
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue