From a00abcb003e8481e9ca7bfe5f77713878068b3dd Mon Sep 17 00:00:00 2001 From: Stanislav Simovski Date: Fri, 13 Apr 2018 23:32:41 +0300 Subject: [PATCH] [terraform] Fixed typo in preflight_checks (#38740) The function was incorrectly reporting project path when it failed to find binary. --- 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 a7ae2d4b9d..8f9efb97e4 100644 --- a/lib/ansible/modules/cloud/misc/terraform.py +++ b/lib/ansible/modules/cloud/misc/terraform.py @@ -139,7 +139,7 @@ module = None def preflight_validation(bin_path, project_path, variables_args=None, plan_file=None): if not os.path.exists(bin_path): - module.fail_json(msg="Path for Terraform binary '{0}' doesn't exist on this host - check the path and try again please.".format(project_path)) + module.fail_json(msg="Path for Terraform binary '{0}' doesn't exist on this host - check the path and try again please.".format(bin_path)) if not os.path.isdir(project_path): module.fail_json(msg="Path for Terraform project '{0}' doesn't exist on this host - check the path and try again please.".format(project_path))