X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f3e02106cfc33ffe333af9e303a9e68f3ecfb2e4..2f953026bc4baeccb78ca82acc4d07cad37625b8:/sdk/cwl/arvados_cwl/fsaccess.py diff --git a/sdk/cwl/arvados_cwl/fsaccess.py b/sdk/cwl/arvados_cwl/fsaccess.py index 500ea0f420..b249da77dd 100644 --- a/sdk/cwl/arvados_cwl/fsaccess.py +++ b/sdk/cwl/arvados_cwl/fsaccess.py @@ -139,7 +139,9 @@ class CollectionFetcher(DefaultFetcher): with self.fsaccess.open(url, "r") as f: return f.read() if url.startswith("arvwf:"): - return self.api_client.workflows().get(uuid=url[6:]).execute()["definition"] + record = self.api_client.workflows().get(uuid=url[6:]).execute() + definition = record["definition"] + ('\nlabel: "%s"\n' % record["name"].replace('"', '\\"')) + return definition return super(CollectionFetcher, self).fetch_text(url) def check_exists(self, url):