deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@redhat.com
Subject [PATCH 4/6] Swap storage_volume device mapping for ec2 driver (volume=>attachment)
Date Fri, 23 Dec 2011 16:31:22 GMT
From: marios <marios@redhat.com>


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

diff --git a/server/lib/deltacloud/drivers/ec2/ec2_driver.rb b/server/lib/deltacloud/drivers/ec2/ec2_driver.rb
index 8f8394d..a6e2380 100644
--- a/server/lib/deltacloud/drivers/ec2/ec2_driver.rb
+++ b/server/lib/deltacloud/drivers/ec2/ec2_driver.rb
@@ -803,7 +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],
+            :storage_volumes => instance[:block_device_mappings].map{|vol| {vol.values.first=>vol.keys.first
} },
             :create_image => can_create_image
           )
         end
-- 
1.7.6.4


Mime
View raw message