From cbb6e930023aeffdd03332894c85bc156316c72f Mon Sep 17 00:00:00 2001 From: Brett Smith Date: Tue, 4 Nov 2014 12:31:00 -0500 Subject: [PATCH 1/1] 4412: arv edit consistently uses :body_object in API requests. Fixes #4412. --- sdk/cli/bin/arv | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/cli/bin/arv b/sdk/cli/bin/arv index 3489f8e433..8c7e6f179d 100755 --- a/sdk/cli/bin/arv +++ b/sdk/cli/bin/arv @@ -302,7 +302,7 @@ def arv_edit client, arvados, global_opts, remaining_opts begin result = client.execute(:api_method => eval(api_method), :parameters => {"uuid" => uuid}, - :body => { rsc.singularize => dumped }, + :body_object => { rsc.singularize => dumped }, :authenticated => false, :headers => { authorization: 'OAuth2 '+ENV['ARVADOS_API_TOKEN'] @@ -673,7 +673,7 @@ when else result = client.execute(:api_method => eval(api_method), :parameters => request_parameters, - :body => request_body, + :body_object => request_body, :authenticated => false, :headers => { authorization: 'OAuth2 '+ENV['ARVADOS_API_TOKEN'] -- 2.30.2