[ARVADOS] updated: ee99af104e445cabbe6a0389b9f3d1ac170ce6d5

git at public.curoverse.com git at public.curoverse.com
Thu Jul 3 16:45:01 EDT 2014


Summary of changes:
 sdk/cli/bin/arv-run-pipeline-instance | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

       via  ee99af104e445cabbe6a0389b9f3d1ac170ce6d5 (commit)
      from  ce69b2c94aeb8f897f41fbeaabfed3f3c55495d5 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit ee99af104e445cabbe6a0389b9f3d1ac170ce6d5
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Thu Jul 3 16:38:59 2014 -0400

    job create method parameters need to be converted to json before being passed
    to google API client.  no issue #

diff --git a/sdk/cli/bin/arv-run-pipeline-instance b/sdk/cli/bin/arv-run-pipeline-instance
index ed4fbd5..304628f 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']

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list