From 94dab1e19d37a65deffa66cff1d9f6ea7eb2dad6 Mon Sep 17 00:00:00 2001 From: ivarmu <26822043+ivarmu@users.noreply.github.com> Date: Fri, 29 Nov 2024 10:23:22 +0100 Subject: [PATCH] added the missing line --- roles/filetree_create/templates/controller_job_templates.j2 | 1 + .../templates/controller_workflow_job_templates.j2 | 1 + 2 files changed, 2 insertions(+) diff --git a/roles/filetree_create/templates/controller_job_templates.j2 b/roles/filetree_create/templates/controller_job_templates.j2 index cab0af24..50d6e175 100644 --- a/roles/filetree_create/templates/controller_job_templates.j2 +++ b/roles/filetree_create/templates/controller_job_templates.j2 @@ -197,6 +197,7 @@ controller_templates: | from_yaml | to_nice_yaml(indent=2,width=500,sort_keys=False) | regex_replace("\n\n[ ]*", "\\\\n") | indent(width=6, first=False) | regex_replace('(^[^:]*): (.*){([{%])', '\\g<1>: !unsafe \\g<2>{\\g<3>', multiline=True) | replace("^$", "") | replace("$encrypted$", "\'\'") + | replace("'", '"') | regex_replace('default: ([^"].*)', 'default: "\\g<1>"') -%} {% if template_overrides_resources.job_template[current_job_templates_asset_value.name].survey_spec is defined or template_overrides_global.job_template.survey_spec is defined diff --git a/roles/filetree_create/templates/controller_workflow_job_templates.j2 b/roles/filetree_create/templates/controller_workflow_job_templates.j2 index bd3fc263..56825cf5 100644 --- a/roles/filetree_create/templates/controller_workflow_job_templates.j2 +++ b/roles/filetree_create/templates/controller_workflow_job_templates.j2 @@ -121,6 +121,7 @@ controller_workflows: | from_yaml | to_nice_yaml(indent=2,width=500, sort_keys=False) | regex_replace("\n\n[ ]*", "\\\\n") | indent(width=6, first=False) | regex_replace('(^[^:]*): (.*){([{%])', '\\g<1>: !unsafe \\g<2>{\\g<3>', multiline=True) | replace("^$", "") | replace("$encrypted$", "\'\'") + | replace("'", '"') | regex_replace('default: ([^"].*)', 'default: "\\g<1>"') -%} {% if template_overrides_resources.workflow_job_template[current_workflow_job_templates_asset_value.name].survey_spec is defined or template_overrides_global.workflow_job_template.survey_spec is defined