incubator-deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lut...@apache.org
Subject svn commit: r962033 - /incubator/deltacloud/trunk/drivers/ec2/lib/ec2_driver.rb
Date Thu, 08 Jul 2010 23:18:15 GMT
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



Mime
View raw message