incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@redhat.com
Subject [PATCH core 2/3] Attaching EBS snapshot support for client
Date Tue, 10 May 2011 09:43:53 GMT
From: Michal Fojtik <mfojtik@redhat.com>


Signed-off-by: Michal fojtik <mfojtik@redhat.com>
---
 client/lib/deltacloud.rb |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/client/lib/deltacloud.rb b/client/lib/deltacloud.rb
index e2db0ba..26ed9ae 100644
--- a/client/lib/deltacloud.rb
+++ b/client/lib/deltacloud.rb
@@ -294,6 +294,13 @@ module DeltaCloud
           params[:hwp_id] ||= params[:hardware_profile]
         end
 
+        if args[:ebs_snapshot_id] and args[:device_name]
+          params.merge!({
+            :ebs_snapshot_id => args[:ebs_snapshot_id],
+            :device_name => args[:device_name]
+          })
+        end
+
         params[:image_id] ||= params[:image_id] || args[0] if args[0].class!=Hash
 
         obj = nil
-- 
1.7.4.1


Mime
View raw message