From a0a36db3484f090ff5e71268ec86e4d279ce2dc1 Mon Sep 17 00:00:00 2001 From: liujun Date: Tue, 12 Mar 2024 11:38:28 +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 --- .pre-commit-config.yaml | 2 +- gcloud/tasktmpl3/domains/constants.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e599933bae..196ed9ed72 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ repos: hooks: - id: check-merge-conflict - repo: https://github.com/psf/black - rev: stable + rev: 22.8.0 hooks: - id: black language_version: python3.6 diff --git a/gcloud/tasktmpl3/domains/constants.py b/gcloud/tasktmpl3/domains/constants.py index 3ab3a6077b..d7e8371948 100644 --- a/gcloud/tasktmpl3/domains/constants.py +++ b/gcloud/tasktmpl3/domains/constants.py @@ -169,7 +169,8 @@ def get_need_render_context_keys(): else: raise Exception(f"can not preview inputs for node type: {node_type}") raw_inputs = {key: info["value"] for key, info in raw_inputs.items()} - hydrated_context = context.hydrate(deformat=True) + need_render = pipeline["activities"][node_id]["component"]["inputs"]["job_content"]["need_render"] + hydrated_context = context.hydrate(deformat=need_render) inputs = Template(raw_inputs).render(hydrated_context) return inputs