diff options
author | Paul Bonaud <paul.bonaud@fretlink.com> | 2020-03-24 20:02:57 +0100 |
---|---|---|
committer | Paul Bonaud <paul.bonaud@fretlink.com> | 2020-03-24 20:05:35 +0100 |
commit | 47bbd50a222a2f0d477863ce9de6982cc5fc8fd3 (patch) | |
tree | 8ce03f2cc4ff396782aab7af6296aadc40553f6d | |
parent | 0815543375419c6e15ac67d57d19578dfcf2b290 (diff) | |
download | ansible-clever-47bbd50a222a2f0d477863ce9de6982cc5fc8fd3.tar.gz ansible-clever-47bbd50a222a2f0d477863ce9de6982cc5fc8fd3.tar.zst ansible-clever-47bbd50a222a2f0d477863ce9de6982cc5fc8fd3.zip |
fix: there was a bug in the generate env file
Bug Introduced by #57 because the `to_json` filter quotes the given
value if it's a string, so the PR was "double quoting" each values.
-rw-r--r-- | templates/env.j2 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/env.j2 b/templates/env.j2 index 66e5508..30bda82 100644 --- a/templates/env.j2 +++ b/templates/env.j2 | |||
@@ -1,9 +1,9 @@ | |||
1 | {% for key, value in (clever_base_env | combine(clever_env)).items() %} | 1 | {% for key, value in (clever_base_env | combine(clever_env)).items() %} |
2 | {{ key }}="{{ value | to_json }}" | 2 | {{ key }}={{ value | to_json }} |
3 | {% endfor %} | 3 | {% endfor %} |
4 | 4 | ||
5 | {%- if clever_haskell_entry_point %} | 5 | {%- if clever_haskell_entry_point %} |
6 | {# Haskell only #} | 6 | {# Haskell only #} |
7 | {# https://www.clever-cloud.com/doc/get-help/reference-environment-variables/#haskell #} | 7 | {# https://www.clever-cloud.com/doc/get-help/reference-environment-variables/#haskell #} |
8 | CC_RUN_COMMAND="{{'~/.local/bin/' + clever_haskell_entry_point | to_json }}" | 8 | CC_RUN_COMMAND={{'~/.local/bin/' + clever_haskell_entry_point | to_json }} |
9 | {% endif %} | 9 | {% endif %} |