Disable strict mode

Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
This commit is contained in:
Oliver Sand
2021-06-04 15:45:19 +02:00
parent 0290884191
commit 805f6ecc15
3 changed files with 6 additions and 8 deletions
@@ -35,7 +35,7 @@ spec:
description: System of the component
ui:field: EntityPicker
ui:options:
allowedKinds:
allowedKinds:
- System
defaultKind: System
@@ -64,7 +64,8 @@ spec:
url: ./template
values:
name: '{{ parameters.name }}'
owner: '{{ parameters.owner }}'
owner: '{{ parameters.owner }}'
system: '{{ parameters.system }}'
destination: '{{ parseRepoUrl parameters.repoUrl }}'
- id: fetch-docs
@@ -98,5 +99,5 @@ spec:
listWorkspace: true
output:
remoteUrl: '{{#unless parameters.dryRun}}{{ steps.publish.output.remoteUrl }}{{/unless}}'
entityRef: '{{#unless parameters.dryRun}}{{ steps.register.output.entityRef }}{{/unless}}'
remoteUrl: '{{ steps.publish.output.remoteUrl }}'
entityRef: '{{ steps.register.output.entityRef }}'
@@ -7,6 +7,6 @@ spec:
type: website
lifecycle: experimental
owner: {{cookiecutter.owner | jsonify}}
{%- if cookiecutter.backstage_system != "" %}
{%- if cookiecutter.system != "" %}
system: {{ cookiecutter.system | jsonify }}
{%- endif %}
@@ -118,7 +118,6 @@ export class TaskWorker {
if (typeof value === 'string') {
const templated = this.handlebars.compile(value, {
noEscape: true,
strict: true,
data: false,
preventIndent: true,
})(templateCtx);
@@ -162,7 +161,6 @@ export class TaskWorker {
if (typeof value === 'string') {
const templated = this.handlebars.compile(value, {
noEscape: true,
strict: true,
data: false,
preventIndent: true,
})(templateCtx);
@@ -249,7 +247,6 @@ export class TaskWorker {
if (typeof value === 'string') {
return this.handlebars.compile(value, {
noEscape: true,
strict: true,
data: false,
preventIndent: true,
})(templateCtx);