From 52ecb5c7e3665d915e48bc8362a92e7ebff06e37 Mon Sep 17 00:00:00 2001 From: Clement Delafargue Date: Mon, 25 Nov 2019 13:51:24 +0100 Subject: Quote env vars to support multiline values clever-tools now supports multiline env vars. It did so by supporting quotes in the formats it reads from. This commit quotes the exported values using the `tojson` filter. Of course, a better solution would be for clever env to directly read json value, but it's not there yet --- templates/env.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/env.j2 b/templates/env.j2 index 6ed6469..d2bf446 100644 --- a/templates/env.j2 +++ b/templates/env.j2 @@ -1,3 +1,3 @@ {% for key, value in (clever_base_env | combine(clever_env)).items() %} -{{ key }}={{ value }} +{{ key }}="{{ value | tojson }}" {% endfor %} -- cgit v1.2.3