From 1c7044cfe31d0e90c14cc4bdd63dbf686edbc4a0 Mon Sep 17 00:00:00 2001 From: dcore94 Date: Tue, 26 Oct 2021 15:31:40 +0200 Subject: [PATCH] moved get workspace to pyrest --- templates/da_cache_to_shub.json.j2 | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/templates/da_cache_to_shub.json.j2 b/templates/da_cache_to_shub.json.j2 index 4aaebf2..dc2f9ae 100644 --- a/templates/da_cache_to_shub.json.j2 +++ b/templates/da_cache_to_shub.json.j2 @@ -25,25 +25,23 @@ } }, { - "name" : "http", - "taskReferenceName" : "get_workspace", - "type" : "HTTP", - "inputParameters" : { - "http_request": { - "uri" : "${init.input.storagehub}/workspace", - "method" : "GET", - "headers" : { "Authorization" : "${init.input.auth}" } - } - }, - "retryCount" : 5, - "retryDelaySeconds": 10 + "name" : "pyrest", + "taskReferenceName" : "get_workspace", + "type" : "SIMPLE", + "inputParameters" : { + "url" : "${init.input.storagehub}/workspace", + "method" : "GET", + "headers" : { "Authorization" : "${init.input.auth}" } + }, + "retryCount" : 5, + "retryDelaySeconds": 10 }, { "name": "LAMBDA_TASK", "taskReferenceName": "init2", "type": "LAMBDA", "inputParameters": { - "workspace_root_folder_id" : "${get_workspace.output.response.body.item.id}", + "workspace_root_folder_id" : "${get_workspace.output.body.item.id}", "scriptExpression": "1 === 1" } },