You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by ma...@redhat.com on 2012/07/04 13:05:15 UTC

[PATCH] Fix for DTACLOUD_249 - ruby 1.8/1.9 string incompatibility

From: marios <ma...@redhat.com>

https://issues.apache.org/jira/browse/DTACLOUD-249

Signed-off-by: marios <ma...@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 7629ffa..2eddd9c 100644
--- a/server/lib/deltacloud/drivers/ec2/ec2_driver.rb
+++ b/server/lib/deltacloud/drivers/ec2/ec2_driver.rb
@@ -563,7 +563,7 @@ module Deltacloud
 
         def storage_volumes(credentials, opts={})
           ec2 = new_client( credentials )
-          volume_list = (opts and opts[:id]) ? opts[:id] : nil
+          volume_list = (opts and opts[:id]) ? [opts[:id]] : []
           safely do
             ec2.describe_volumes(volume_list).collect do |volume|
               convert_volume(volume)
-- 
1.7.6.5