Use :body_object instead of :body
authorPeter Amstutz <peter.amstutz@curoverse.com>
Thu, 31 Jul 2014 19:31:23 +0000 (15:31 -0400)
committerPeter Amstutz <peter.amstutz@curoverse.com>
Thu, 31 Jul 2014 19:31:23 +0000 (15:31 -0400)
sdk/cli/bin/arv-run-pipeline-instance

index 389ce9cc21373eb079b4be2655e8211d7aaaaa43..ab3702cafc02b86825c3739ff63901828def793d 100755 (executable)
@@ -243,7 +243,7 @@ class PipelineInstance
   end
   def self.create(attributes)
     result = $client.execute(:api_method => $arvados.pipeline_instances.create,
-                             :body => {
+                             :body_object => {
                                :pipeline_instance => attributes.to_json
                              },
                              :authenticated => false,
@@ -262,7 +262,7 @@ class PipelineInstance
                              :parameters => {
                                :uuid => @pi[:uuid]
                              },
-                             :body => {
+                             :body_object => {
                                :pipeline_instance => @attributes_to_update.to_json
                              },
                              :authenticated => false,
@@ -328,7 +328,7 @@ class JobCache
     body = {job: no_nil_values(job)}.merge(no_nil_values(create_params))
 
     result = $client.execute(:api_method => $arvados.jobs.create,
-                             :body => body,
+                             :body_object => body,
                              :authenticated => false,
                              :headers => {
                                authorization: 'OAuth2 '+ENV['ARVADOS_API_TOKEN']
@@ -346,7 +346,7 @@ class JobCache
       msg += "Job submission was: #{body.to_json}"
 
       $client.execute(:api_method => $arvados.logs.create,
-                      :body => {
+                      :body_object => {
                         :log => {
                           :object_uuid => pipeline[:uuid],
                           :event_type => 'stderr',