From e8972ce4591231c8fa7d7daa6949cfa3dab32573 Mon Sep 17 00:00:00 2001 From: Nick Curry Date: Sat, 16 Mar 2019 22:34:02 -0500 Subject: [PATCH] Terraform: Allow lock flag to get set to false (#53873) This change allows a false value to propagate appropriately to the terraform cli. --- lib/ansible/modules/cloud/misc/terraform.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/misc/terraform.py b/lib/ansible/modules/cloud/misc/terraform.py index bd1f4dbb73a..b74b468d8e6 100644 --- a/lib/ansible/modules/cloud/misc/terraform.py +++ b/lib/ansible/modules/cloud/misc/terraform.py @@ -337,7 +337,7 @@ def main(): if module.params.get('lock'): command.append('-lock=true') else: - command.append('-lock=true') + command.append('-lock=false') if module.params.get('lock_timeout') is not None: command.append('-lock-timeout=%ds' % module.params.get('lock_timeout'))