You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by lu...@apache.org on 2010/07/09 01:18:15 UTC
svn commit: r962033 -
/incubator/deltacloud/trunk/drivers/ec2/lib/ec2_driver.rb
Author: lutter
Date: Thu Jul 8 23:18:15 2010
New Revision: 962033
URL: http://svn.apache.org/viewvc?rev=962033&view=rev
Log:
Filter instances by id.
Modified:
incubator/deltacloud/trunk/drivers/ec2/lib/ec2_driver.rb
Modified: incubator/deltacloud/trunk/drivers/ec2/lib/ec2_driver.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/drivers/ec2/lib/ec2_driver.rb?rev=962033&r1=962032&r2=962033&view=diff
==============================================================================
--- incubator/deltacloud/trunk/drivers/ec2/lib/ec2_driver.rb (original)
+++ incubator/deltacloud/trunk/drivers/ec2/lib/ec2_driver.rb Thu Jul 8 23:18:15 2010
@@ -91,11 +91,11 @@ class Ec2Driver < DeltaCloud::BaseDriver
# Instances
#
- def instances(credentials, ids=nil)
+ def instances(credentials, opts=nil)
ec2 = new_client(credentials)
instances = []
safely do
- ec2.describe_instances(ids).each do |ec2_instance|
+ ec2.describe_instances(opts[:id]).each do |ec2_instance|
instances << convert_instance( ec2_instance )
end
end