From 5953fb592202cd12cf4cfb78900a4f1b89e85c79 Mon Sep 17 00:00:00 2001 From: Dannon Baker Date: Wed, 16 Sep 2015 14:37:35 -0400 Subject: [PATCH] Use tool.to_json optional kwd to parse old job inputs instead of doing it manually. --- lib/galaxy/webapps/galaxy/api/jobs.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/galaxy/webapps/galaxy/api/jobs.py b/lib/galaxy/webapps/galaxy/api/jobs.py index 351a6a7c297..1c5d92a6261 100644 --- a/lib/galaxy/webapps/galaxy/api/jobs.py +++ b/lib/galaxy/webapps/galaxy/api/jobs.py @@ -191,11 +191,10 @@ class JobController( BaseAPIController, UsesLibraryMixinItems ): job = self.__get_job(trans, id) if not job: raise exceptions.ObjectNotFound("Could not access job with id '%s'" % id) - id = job.tool_id + tool_id = job.tool_id tool_version = job.tool_version - inputs = job.get_param_values( trans.app ) - tool = self.app.toolbox.get_tool( id, tool_version ) - return tool.to_json(trans, inputs) + tool = self.app.toolbox.get_tool( tool_id, tool_version ) + return tool.to_json(trans, kwd={'__job_id__' : id}) def __dictify_associations( self, trans, *association_lists ): rval = []