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
lib/fog/aws/requests/sts
|
@ -11,6 +11,7 @@ module Fog
|
||||||
'Name' => name,
|
'Name' => name,
|
||||||
'Policy' => MultiJson.encode(policy),
|
'Policy' => MultiJson.encode(policy),
|
||||||
'DurationSeconds' => duration,
|
'DurationSeconds' => duration,
|
||||||
|
:idempotent => true,
|
||||||
:parser => Fog::Parsers::AWS::STS::GetSessionToken.new
|
:parser => Fog::Parsers::AWS::STS::GetSessionToken.new
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
|
@ -9,6 +9,7 @@ module Fog
|
||||||
request({
|
request({
|
||||||
'Action' => 'GetSessionToken',
|
'Action' => 'GetSessionToken',
|
||||||
'DurationSeconds' => duration,
|
'DurationSeconds' => duration,
|
||||||
|
:idempotent => true,
|
||||||
:parser => Fog::Parsers::AWS::STS::GetSessionToken.new
|
:parser => Fog::Parsers::AWS::STS::GetSessionToken.new
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue