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 2011/06/24 18:10:20 UTC
[PATCH 2/4] [minor] Fix typo in client bucket method params
From: marios <ma...@redhat.com>
Signed-off-by: marios <ma...@redhat.com>
---
client/lib/client_bucket_methods.rb | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/client/lib/client_bucket_methods.rb b/client/lib/client_bucket_methods.rb
index cc7dcff..edca0a7 100644
--- a/client/lib/client_bucket_methods.rb
+++ b/client/lib/client_bucket_methods.rb
@@ -27,7 +27,7 @@ module ClientBucketMethods
end
headers = headers.merge(metadata_headers)
end
- resource.send(:post, {:blob_data => File.new(params['file_path'], 'rb'), :blob_id => params[:id]}, headers) do |response, request, block|
+ resource.send(:post, {:blob_data => File.new(params['file_path'], 'rb'), :blob => params[:id]}, headers) do |response, request, block|
handle_backend_error(response) if response.code.eql?(500)
blob = base_object(:blob, response)
yield blob if block_given?
@@ -51,4 +51,4 @@ module ClientBucketMethods
end
end
-end
\ No newline at end of file
+end
--
1.7.3.4