From 84875d9cb707a20cf906338d715758d38f068f96 Mon Sep 17 00:00:00 2001 From: liujun Date: Thu, 25 Apr 2024 15:55:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E6=9C=AA=E6=89=A7=E8=A1=8C=E8=8A=82=E7=82=B9=E9=A2=84=E8=A7=88?= =?UTF-8?q?=E6=97=B6=E5=85=8D=E6=B8=B2=E6=9F=93=E8=A1=A8=E5=8D=95=E9=A1=B9?= =?UTF-8?q?=E4=B8=AD=E5=8F=98=E9=87=8F=E4=BB=8D=E8=A2=AB=E6=B8=B2=E6=9F=93?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20#7358?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gcloud/tasktmpl3/domains/constants.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gcloud/tasktmpl3/domains/constants.py b/gcloud/tasktmpl3/domains/constants.py index 35914e5a64..157f727ff9 100644 --- a/gcloud/tasktmpl3/domains/constants.py +++ b/gcloud/tasktmpl3/domains/constants.py @@ -126,12 +126,12 @@ def get_need_render_context_keys(): need_render_context_keys = get_need_render_context_keys() else: need_render_context_keys = list(pipeline["data"].get("inputs", {}).keys()) + list(parent_params.keys()) - need_render_keys = { + no_need_render_keys = { "${%s}" % key - for key, val in pipeline["activities"][node_id]["component"]["inputs"].items() - if not val["need_render"] + for key, val in pipeline["activities"].get(node_id, {}).get("component", {}).get("inputs", {}).items() + if not val.get("need_render") } - need_render_context_keys = need_render_context_keys.difference(need_render_keys) + need_render_context_keys = need_render_context_keys.difference(no_need_render_keys) context_values = [ ContextValue(key=key, type=VAR_CONTEXT_MAPPING[info["type"]], value=info["value"], code=info.get("custom_type")) for key, info in list(pipeline["data"].get("inputs", {}).items()) + list(parent_params.items())