From ee99af104e445cabbe6a0389b9f3d1ac170ce6d5 Mon Sep 17 00:00:00 2001 From: Peter Amstutz Date: Thu, 3 Jul 2014 16:38:59 -0400 Subject: [PATCH] job create method parameters need to be converted to json before being passed to google API client. no issue # --- sdk/cli/bin/arv-run-pipeline-instance | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sdk/cli/bin/arv-run-pipeline-instance b/sdk/cli/bin/arv-run-pipeline-instance index ed4fbd55f6..304628f438 100755 --- a/sdk/cli/bin/arv-run-pipeline-instance +++ b/sdk/cli/bin/arv-run-pipeline-instance @@ -324,10 +324,16 @@ class JobCache end def self.create(job, create_params) @cache ||= {} + + jsonified_create_params = {} + create_params.each do |k, v| + jsonified_create_params[k] = v.to_json + end + result = $client.execute(:api_method => $arvados.jobs.create, :body => { :job => job.to_json - }.merge(create_params), + }.merge(jsonified_create_params), :authenticated => false, :headers => { authorization: 'OAuth2 '+ENV['ARVADOS_API_TOKEN'] -- 2.30.2