From bc520536a377f7233ae099cd9315bc22915ab530 Mon Sep 17 00:00:00 2001 From: geemus Date: Sat, 18 Feb 2012 10:58:31 -0600 Subject: [PATCH] [aws|sts] make get_*_token requests idempotent --- lib/fog/aws/requests/sts/get_federation_token.rb | 1 + lib/fog/aws/requests/sts/get_session_token.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/fog/aws/requests/sts/get_federation_token.rb b/lib/fog/aws/requests/sts/get_federation_token.rb index 84e96e8e6..d56df8bdc 100644 --- a/lib/fog/aws/requests/sts/get_federation_token.rb +++ b/lib/fog/aws/requests/sts/get_federation_token.rb @@ -11,6 +11,7 @@ module Fog 'Name' => name, 'Policy' => MultiJson.encode(policy), 'DurationSeconds' => duration, + :idempotent => true, :parser => Fog::Parsers::AWS::STS::GetSessionToken.new }) end diff --git a/lib/fog/aws/requests/sts/get_session_token.rb b/lib/fog/aws/requests/sts/get_session_token.rb index b188a22cc..f76531ba4 100644 --- a/lib/fog/aws/requests/sts/get_session_token.rb +++ b/lib/fog/aws/requests/sts/get_session_token.rb @@ -9,6 +9,7 @@ module Fog request({ 'Action' => 'GetSessionToken', 'DurationSeconds' => duration, + :idempotent => true, :parser => Fog::Parsers::AWS::STS::GetSessionToken.new }) end