incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@redhat.com
Subject [PATCH 2/3] Fix typo in rackspace bucket conversion (was missing bucket size)
Date Thu, 20 Oct 2011 12:06:05 GMT
From: marios <marios@redhat.com>


Signed-off-by: marios <marios@redhat.com>
---
 .../drivers/rackspace/rackspace_driver.rb          |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/server/lib/deltacloud/drivers/rackspace/rackspace_driver.rb b/server/lib/deltacloud/drivers/rackspace/rackspace_driver.rb
index e7c52d7..622e5ec 100644
--- a/server/lib/deltacloud/drivers/rackspace/rackspace_driver.rb
+++ b/server/lib/deltacloud/drivers/rackspace/rackspace_driver.rb
@@ -366,10 +366,11 @@ private
   end
 
   def convert_container(cf_container)
+    blob_list=cf_container.objects
     Bucket.new({ :id => cf_container.name,
                     :name => cf_container.name,
-                    :size => cf_container.count,
-                    :blob_list => cf_container.objects
+                    :size => blob_list.size,
+                    :blob_list => blob_list
                  })
   end
 
-- 
1.7.6.4


Mime
View raw message