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 of terraform module (#4281)
* 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>
This commit is contained in:
parent
43af053d73
commit
4cc7f41395
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():
|
||||
variables_args.extend([
|
||||
'-var',
|
||||
'{0}={1}'.format(k, v)
|
||||
'{0}={1}'.format(k, json.dumps(v))
|
||||
])
|
||||
if variables_files:
|
||||
for f in variables_files:
|
||||
|
|
Loading…
Reference in a new issue