deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject svn commit: r1221833 - in /deltacloud/trunk/server/lib/deltacloud: drivers/ec2/ec2_driver.rb models/instance.rb
Date Wed, 21 Dec 2011 18:32:53 GMT
Author: marios
Date: Wed Dec 21 18:32:53 2011
New Revision: 1221833

URL: http://svn.apache.org/viewvc?rev=1221833&view=rev
Log:
Add storage_volumes to Deltacloud::Instance model (for CIMI::Machine volumes attribute)

Modified:
    deltacloud/trunk/server/lib/deltacloud/drivers/ec2/ec2_driver.rb
    deltacloud/trunk/server/lib/deltacloud/models/instance.rb

Modified: deltacloud/trunk/server/lib/deltacloud/drivers/ec2/ec2_driver.rb
URL: http://svn.apache.org/viewvc/deltacloud/trunk/server/lib/deltacloud/drivers/ec2/ec2_driver.rb?rev=1221833&r1=1221832&r2=1221833&view=diff
==============================================================================
--- deltacloud/trunk/server/lib/deltacloud/drivers/ec2/ec2_driver.rb (original)
+++ deltacloud/trunk/server/lib/deltacloud/drivers/ec2/ec2_driver.rb Wed Dec 21 18:32:53 2011
@@ -803,6 +803,7 @@ module Deltacloud
             :public_addresses => [InstanceAddress.new(instance[:dns_name], :type =>
:hostname)],
             :private_addresses => [InstanceAddress.new(instance[:private_dns_name], :type
=> :hostname)],
             :firewalls => instance[:aws_groups],
+            :storage_volumes => instance[:block_device_mappings],
             :create_image => can_create_image
           )
         end

Modified: deltacloud/trunk/server/lib/deltacloud/models/instance.rb
URL: http://svn.apache.org/viewvc/deltacloud/trunk/server/lib/deltacloud/models/instance.rb?rev=1221833&r1=1221832&r2=1221833&view=diff
==============================================================================
--- deltacloud/trunk/server/lib/deltacloud/models/instance.rb (original)
+++ deltacloud/trunk/server/lib/deltacloud/models/instance.rb Wed Dec 21 18:32:53 2011
@@ -34,6 +34,7 @@ class Instance < BaseModel
   attr_accessor :password
   attr_accessor :create_image
   attr_accessor :firewalls
+  attr_accessor :storage_volumes
 
   def can_create_image?
     self.create_image



Mime
View raw message