[ARVADOS] updated: c837f9d9530679a0350fac40bdbe748751b85cce
Git user
git at public.curoverse.com
Wed Aug 24 07:25:15 EDT 2016
Summary of changes:
apps/workbench/app/controllers/work_units_controller.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
via c837f9d9530679a0350fac40bdbe748751b85cce (commit)
from 962146ad2bfedd94afd2a88329e57f0aaff08e0f (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 c837f9d9530679a0350fac40bdbe748751b85cce
Author: radhika <radhika at curoverse.com>
Date: Wed Aug 24 07:23:44 2016 -0400
9767: need to parse the json string of the workflow yaml
diff --git a/apps/workbench/app/controllers/work_units_controller.rb b/apps/workbench/app/controllers/work_units_controller.rb
index 1220f7a..9ccfd1d 100644
--- a/apps/workbench/app/controllers/work_units_controller.rb
+++ b/apps/workbench/app/controllers/work_units_controller.rb
@@ -48,7 +48,7 @@ class WorkUnitsController < ApplicationController
workflow = Workflow.find? template_uuid
if workflow.workflow
begin
- wf_json = JSON.dump(YAML::load(workflow.workflow))
+ wf_json = JSON.parse(JSON.dump(YAML::load(workflow.workflow)))
rescue => e
logger.error "Error converting workflow yaml to json: #{e.message}"
raise ArgumentError, "Error converting workflow yaml to json: #{e.message}"
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list