Skip to content

Commit

Permalink
fix describe_instances without :filter param
Browse files Browse the repository at this point in the history
  • Loading branch information
tka lu committed Oct 3, 2010
1 parent c2ee060 commit 32db8aa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/AWS/EC2/instances.rb
Expand Up @@ -88,7 +88,9 @@ def run_instances( options = {} )
def describe_instances( options = {} )
options = { :instance_id => [] }.merge(options)
params = pathlist("InstanceId", options[:instance_id])
params.merge!(pathhashlist("Filter", options[:filter], {:name => 'Name', :value => 'Value'}))
if options[:filter]
params.merge!(pathhashlist("Filter", options[:filter], {:name => 'Name', :value => 'Value'}))
end
return response_generator(:action => "DescribeInstances", :params => params)
end

Expand Down

0 comments on commit 32db8aa

Please sign in to comment.