Skip to content

Allow creation of multiline env vars #1563

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
e03bb25
Merge branch 'master' of https://github.com/roots/trellis
pacotole Mar 2, 2023
cf7c994
Merge branch 'master' of https://github.com/roots/trellis
pacotole Mar 16, 2023
4e071ba
Merge branch 'master' of https://github.com/roots/trellis
pacotole Apr 12, 2023
ff98901
Merge branch 'master' of https://github.com/roots/trellis
pacotole May 15, 2023
49377cc
Merge branch 'master' of https://github.com/roots/trellis
pacotole Jun 19, 2023
ab877c5
Merge branch 'master' of https://github.com/roots/trellis
pacotole Jun 29, 2023
c1e5efb
Merge branch 'master' of https://github.com/roots/trellis
pacotole Aug 1, 2023
86ba5c9
Merge branch 'master' of https://github.com/roots/trellis
pacotole Sep 26, 2023
a6cff82
Merge branch 'master' of https://github.com/roots/trellis
pacotole Oct 24, 2023
543843f
Merge branch 'master' of https://github.com/roots/trellis
pacotole Nov 13, 2023
338a436
Merge branch 'master' of https://github.com/roots/trellis
pacotole Jan 25, 2024
dbcb19c
Merge branch 'master' of https://github.com/roots/trellis
pacotole Apr 18, 2024
ac15ba9
Merge branch 'master' of https://github.com/roots/trellis
pacotole May 22, 2024
1e194b5
Merge branch 'master' of https://github.com/roots/trellis
pacotole Jun 6, 2024
6739b98
Merge branch 'master' of https://github.com/roots/trellis
pacotole Jul 17, 2024
7f4e44e
Merge branch 'master' of https://github.com/roots/trellis
pacotole Aug 22, 2024
0b4d748
Merge branch 'master' of https://github.com/roots/trellis
pacotole Oct 29, 2024
baa6f8b
Merge branch 'master' of https://github.com/roots/trellis
pacotole Nov 22, 2024
f36add7
Merge branch 'master' of https://github.com/roots/trellis
pacotole Dec 10, 2024
095700e
Merge branch 'master' of https://github.com/roots/trellis
pacotole Dec 30, 2024
f544384
Merge branch 'master' of https://github.com/roots/trellis
pacotole Mar 17, 2025
982c5fb
Allow multiline env vars
pacotole Mar 17, 2025
1fa605c
Update lib/trellis/plugins/filter/filters.py
pacotole Mar 17, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/trellis/plugins/filter/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from ansible.module_utils.six import string_types

def to_env(dict_value):
envs = ["{0}='{1}'".format(key.upper(), str(value).replace("'","\\'")) for key, value in sorted(dict_value.items())]
envs = ['{0}="{1}"'.format(key.upper(), str(value).replace('"','\\"\)) for key, value in sorted(dict_value.items())]
return "\n".join(envs)

def underscore(value):
Expand Down
Loading