1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[ec2] describe_instances should be idempotent

This commit is contained in:
geemus 2010-05-17 11:30:11 -07:00
parent ec9c43cc9e
commit 39ef03c23c

View file

@ -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