From 2200e6d48f43c01b041664b382c0cbd49cd2a40b Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Wed, 16 Mar 2022 07:03:16 +0100 Subject: [PATCH] Revert "Allow complex values in variables parameter of terraform module (#4281)" This reverts commit 4cc7f413953606cda79596c7682eac0319936199. --- changelogs/fragments/4281-terraform-complex-variables.yml | 2 -- plugins/modules/cloud/misc/terraform.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) delete mode 100644 changelogs/fragments/4281-terraform-complex-variables.yml diff --git a/changelogs/fragments/4281-terraform-complex-variables.yml b/changelogs/fragments/4281-terraform-complex-variables.yml deleted file mode 100644 index 92538791f08..00000000000 --- a/changelogs/fragments/4281-terraform-complex-variables.yml +++ /dev/null @@ -1,2 +0,0 @@ -bugfixes: - - terraform - fix ``variable`` handling to allow complex values (https://github.com/ansible-collections/community.general/pull/4281). \ No newline at end of file diff --git a/plugins/modules/cloud/misc/terraform.py b/plugins/modules/cloud/misc/terraform.py index 310dd77c8e1..8eca14e712c 100644 --- a/plugins/modules/cloud/misc/terraform.py +++ b/plugins/modules/cloud/misc/terraform.py @@ -443,7 +443,7 @@ def main(): for k, v in variables.items(): variables_args.extend([ '-var', - '{0}={1}'.format(k, json.dumps(v)) + '{0}={1}'.format(k, v) ]) if variables_files: for f in variables_files: