Skip to content
Snippets Groups Projects
Commit b72abe11 authored by nimrod's avatar nimrod
Browse files

Fix for the Terraform validate hook.

Check for the right CLI.
parent 18298468
No related branches found
No related tags found
No related merge requests found
Pipeline #4253 failed
......@@ -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(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment