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