From d87e03f9c963089734160b262f5fdc0dd4c262b8 Mon Sep 17 00:00:00 2001 From: Stavros kois Date: Wed, 25 Jan 2023 17:34:46 +0200 Subject: [PATCH] fix list --- .../common/1.0.0/templates/lib/container/env/_envList.tpl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/library/common/1.0.0/templates/lib/container/env/_envList.tpl b/library/common/1.0.0/templates/lib/container/env/_envList.tpl index 98f80e7951..0bf22a4b0e 100644 --- a/library/common/1.0.0/templates/lib/container/env/_envList.tpl +++ b/library/common/1.0.0/templates/lib/container/env/_envList.tpl @@ -6,8 +6,13 @@ {{- $containerName := .containerName -}} {{- $root := .root -}} + {{/* Slices cannot be converted toYaml safely, + temporary convert it to dict. Will be removed + once the tpl is moved in upper level + */}} + {{- $envDict := (dict "envs" $envList) -}} {{- if $envList -}} - {{- $envList = fromYaml (tpl ($envList | toYaml) $root) -}} + {{- $envList = (fromYaml (tpl ($envDict | toYaml) $root)).envs -}} {{- end -}} {{- $dupeCheck := dict -}}