deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@redhat.com
Subject [PATCH 1/2] Add storage_volumes to Deltacloud::Instance model (for CIMI::Machine volumes attribute)
Date Mon, 19 Dec 2011 16:03:09 GMT
From: marios <marios@redhat.com>


Signed-off-by: marios <marios@redhat.com>
---
 server/lib/deltacloud/drivers/ec2/ec2_driver.rb |    1 +
 server/lib/deltacloud/models/instance.rb        |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/server/lib/deltacloud/drivers/ec2/ec2_driver.rb b/server/lib/deltacloud/drivers/ec2/ec2_driver.rb
index da2cb3d..8f8394d 100644
--- a/server/lib/deltacloud/drivers/ec2/ec2_driver.rb
+++ b/server/lib/deltacloud/drivers/ec2/ec2_driver.rb
@@ -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
diff --git a/server/lib/deltacloud/models/instance.rb b/server/lib/deltacloud/models/instance.rb
index e838e2f..c6835a9 100644
--- a/server/lib/deltacloud/models/instance.rb
+++ b/server/lib/deltacloud/models/instance.rb
@@ -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
-- 
1.7.6.4


Mime
View raw message