incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michal Fojtik <mfoj...@redhat.com>
Subject Re: [PATCH 2/3] Fix typo in rackspace bucket conversion (was missing bucket size)
Date Fri, 21 Oct 2011 10:56:57 GMT
ACK.

On Oct 20, 2011, at 2:06 PM, marios@redhat.com wrote:

> 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
> 

------------------------------------------------------
Michal Fojtik, mfojtik@redhat.com
Deltacloud API: http://deltacloud.org


Mime
View raw message