mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
* Allow complex values in variables parameter
Signed-off-by: Webster Mudge <wmudge@gmail.com>
* Add changelog fragment
Signed-off-by: Webster Mudge <wmudge@gmail.com>
* Update changelogs fragments formatting
Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 4cc7f41395
)
Co-authored-by: Webster Mudge <wmudge@cloudera.com>
This commit is contained in:
parent
14d43b10c1
commit
d02b8507d1
2 changed files with 3 additions and 1 deletions
|
@ -0,0 +1,2 @@
|
||||||
|
bugfixes:
|
||||||
|
- terraform - fix ``variable`` handling to allow complex values (https://github.com/ansible-collections/community.general/pull/4281).
|
|
@ -443,7 +443,7 @@ def main():
|
||||||
for k, v in variables.items():
|
for k, v in variables.items():
|
||||||
variables_args.extend([
|
variables_args.extend([
|
||||||
'-var',
|
'-var',
|
||||||
'{0}={1}'.format(k, v)
|
'{0}={1}'.format(k, json.dumps(v))
|
||||||
])
|
])
|
||||||
if variables_files:
|
if variables_files:
|
||||||
for f in variables_files:
|
for f in variables_files:
|
||||||
|
|
Loading…
Reference in a new issue