diff --git a/hooks/terraform_validate.py b/hooks/terraform_validate.py index 60fbb50e8b86917c606fc24888669738c367614c..5107b5e3496b712d7f799493e30764202ca096fc 100644 --- a/hooks/terraform_validate.py +++ b/hooks/terraform_validate.py @@ -36,7 +36,7 @@ def main(): parser = argparse.ArgumentParser(description=__doc__) parser.add_argument("file", nargs="+", type=pathlib.Path) args = parser.parse_args() - hooks.utils.check_executable("terraform") + hooks.utils.check_executable(TF_CLI) os.putenv("TF_INPUT", "0") os.putenv("TF_IN_AUTOMATION", "1") return hooks.utils.bulk_check(