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

Update lib/fog/aws/requests/compute/describe_instance_status.rb

Added missing request parameter IncludeAllInstances
This commit is contained in:
Oleg 2012-08-21 22:27:56 +03:00
parent 959f14613c
commit 118e1c3281

View file

@ -11,6 +11,7 @@ module Fog
raise ArgumentError.new("Filters must be a hash, but is a #{filters.class}.") unless filters.is_a?(Hash)
next_token = filters.delete('nextToken') || filters.delete('NextToken')
max_results = filters.delete('maxResults') || filters.delete('MaxResults')
all_instances = filters.delete('includeAllInstances') || filters.delete('IncludeAllInstances')
params = Fog::AWS.indexed_request_param('InstanceId', filters.delete('InstanceId'))
@ -18,6 +19,7 @@ module Fog
params['NextToken'] = next_token if next_token
params['MaxResults'] = max_results if max_results
params['IncludeAllInstances'] = all_instances if all_instances
request({
'Action' => 'DescribeInstanceStatus',