From 5d40e56d09a2ab976c0b654f1b6bfcd630eb991c Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 30 Jun 2020 23:29:21 +0200 Subject: [PATCH] Avoid pulling plugins from the Terraform online repositry We'd like to test what we ship, so we should not allow terraform to pull from the online repository additional plugins, as that would hide issues in the state that we're trying to test in the CI. --- ci/infra/testrunner/platforms/terraform.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ci/infra/testrunner/platforms/terraform.py b/ci/infra/testrunner/platforms/terraform.py index 182b08e990..54c8835ef2 100644 --- a/ci/infra/testrunner/platforms/terraform.py +++ b/ci/infra/testrunner/platforms/terraform.py @@ -52,6 +52,8 @@ def _provision_platform(self, masters=-1, workers=-1): if self.conf.terraform.plugin_dir: logger.info(f"Installing plugins from {self.conf.terraform.plugin_dir}") init_cmd += f" -plugin-dir={self.conf.terraform.plugin_dir}" + else: + init_cmd += f" -get-plugins=false" self._run_terraform_command(init_cmd) self._run_terraform_command("version")