From 39ef03c23cbb14b17fb5254be8c532b519297d34 Mon Sep 17 00:00:00 2001 From: geemus Date: Mon, 17 May 2010 11:30:11 -0700 Subject: [PATCH] [ec2] describe_instances should be idempotent --- lib/fog/aws/requests/ec2/describe_instances.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/fog/aws/requests/ec2/describe_instances.rb b/lib/fog/aws/requests/ec2/describe_instances.rb index 655429517..c4415587c 100644 --- a/lib/fog/aws/requests/ec2/describe_instances.rb +++ b/lib/fog/aws/requests/ec2/describe_instances.rb @@ -51,8 +51,9 @@ module Fog def describe_instances(instance_id = []) params = AWS.indexed_param('InstanceId', instance_id) request({ - 'Action' => 'DescribeInstances', - :parser => Fog::Parsers::AWS::EC2::DescribeInstances.new + 'Action' => 'DescribeInstances', + :idempotent => true + :parser => Fog::Parsers::AWS::EC2::DescribeInstances.new }.merge!(params)) end