deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject git commit: EC2: Fixed describe_snapshot parameters to be Array instead of String (DTACLOUD-262)
Date Thu, 12 Jul 2012 10:02:21 GMT
Updated Branches:
  refs/heads/master eaa726b47 -> d7ab9b632


EC2: Fixed describe_snapshot parameters to be Array instead of String (DTACLOUD-262)


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/d7ab9b63
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/d7ab9b63
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/d7ab9b63

Branch: refs/heads/master
Commit: d7ab9b6326fb76fec0dc444ef8cbc20dd9743779
Parents: eaa726b
Author: Michal Fojtik <mfojtik@redhat.com>
Authored: Thu Jul 12 12:03:15 2012 +0200
Committer: Michal fojtik <mfojtik@redhat.com>
Committed: Thu Jul 12 12:03:15 2012 +0200

----------------------------------------------------------------------
 server/lib/deltacloud/drivers/ec2/ec2_driver.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/d7ab9b63/server/lib/deltacloud/drivers/ec2/ec2_driver.rb
----------------------------------------------------------------------
diff --git a/server/lib/deltacloud/drivers/ec2/ec2_driver.rb b/server/lib/deltacloud/drivers/ec2/ec2_driver.rb
index 4befa79..177e73f 100644
--- a/server/lib/deltacloud/drivers/ec2/ec2_driver.rb
+++ b/server/lib/deltacloud/drivers/ec2/ec2_driver.rb
@@ -608,7 +608,7 @@ module Deltacloud
 
         def storage_snapshots(credentials, opts={})
           ec2 = new_client(credentials)
-          snapshot_list = (opts and opts[:id]) ? opts[:id] : []
+          snapshot_list = (opts and opts[:id]) ? [opts[:id]] : []
           safely do
             ec2.describe_snapshots(snapshot_list).collect do |snapshot|
               convert_snapshot(snapshot)


Mime
View raw message